Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 0 additions & 23 deletions modules/router-store/jest.config.ts

This file was deleted.

5 changes: 4 additions & 1 deletion modules/router-store/migrations/14_0_0/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ import { waitForAsync } from '@angular/core/testing';

describe('Router Store Migration 14_0_0', () => {
let appTree: UnitTestTree;
const collectionPath = path.join(__dirname, '../migration.json');
const collectionPath = path.join(
process.cwd(),
'dist/modules/router-store/migrations/migration.json'
);
const pkgName = 'router-store';

beforeEach(() => {
Expand Down
5 changes: 4 additions & 1 deletion modules/router-store/migrations/15_2_0/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ import { waitForAsync } from '@angular/core/testing';

describe('Router Store Migration 15_2_0', () => {
let appTree: UnitTestTree;
const collectionPath = path.join(__dirname, '../migration.json');
const collectionPath = path.join(
process.cwd(),
'dist/modules/router-store/migrations/migration.json'
);
const pkgName = 'router-store';

beforeEach(() => {
Expand Down
5 changes: 4 additions & 1 deletion modules/router-store/migrations/6_0_0/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ import {
versionPrefixes,
} from '@ngrx/schematics-core/testing/update';

const collectionPath = path.join(__dirname, '../migration.json');
const collectionPath = path.join(
process.cwd(),
'dist/modules/router-store/migrations/migration.json'
);

describe('Router Store Migration 6_0_0', () => {
let appTree;
Expand Down
5 changes: 4 additions & 1 deletion modules/router-store/migrations/8_0_0/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ import { createPackageJson } from '@ngrx/schematics-core/testing/create-package'

describe('Router Store Migration 8_0_0', () => {
let appTree: UnitTestTree;
const collectionPath = path.join(__dirname, '../migration.json');
const collectionPath = path.join(
process.cwd(),
'dist/modules/router-store/migrations/migration.json'
);
const pkgName = 'router-store';

beforeEach(() => {
Expand Down
5 changes: 4 additions & 1 deletion modules/router-store/migrations/9_0_0/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ import { createPackageJson } from '@ngrx/schematics-core/testing/create-package'

describe('Router Store Migration 9_0_0', () => {
let appTree: UnitTestTree;
const collectionPath = path.join(__dirname, '../migration.json');
const collectionPath = path.join(
process.cwd(),
'dist/modules/router-store/migrations/migration.json'
);
const pkgName = 'router-store';

beforeEach(() => {
Expand Down
17 changes: 11 additions & 6 deletions modules/router-store/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,15 @@
{
"command": "pnpm exec tsc -p modules/router-store/tsconfig.schematics.json"
},
{
"command": "pnpm exec rimraf node_modules/@ngrx/router-store"
},
{
"command": "pnpm exec mkdirp node_modules/@ngrx/router-store"
},
{
"command": "ncp dist/modules/router-store node_modules/@ngrx/router-store"
},
{
"command": "cpy LICENSE dist/modules/router-store"
}
Expand All @@ -43,12 +52,8 @@
"outputs": ["{options.outputFile}"]
},
"test": {
"executor": "@nx/jest:jest",
"options": {
"jestConfig": "modules/router-store/jest.config.ts",
"runInBand": true,
"passWithNoTests": false
},
"executor": "@analogjs/vitest-angular:test",
"dependsOn": ["build"],
"outputs": ["{workspaceRoot}/coverage/modules/router-store"]
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html

exports[`Router Store ng-add Schematic Router Store ng-add Schematic for standalone application provides initial setup 1`] = `
exports[`Router Store ng-add Schematic > Router Store ng-add Schematic for standalone application > provides initial setup 1`] = `
"import { ApplicationConfig, provideBrowserGlobalErrorListeners } from '@angular/core';
import { provideRouterStore } from '@ngrx/router-store';

Expand Down
5 changes: 4 additions & 1 deletion modules/router-store/schematics/ng-add/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ import {
describe('Router Store ng-add Schematic', () => {
const schematicRunner = new SchematicTestRunner(
'@ngrx/router-store',
path.join(__dirname, '../collection.json')
path.join(
process.cwd(),
'dist/modules/router-store/schematics/collection.json'
)
);
const defaultOptions: RouterStoreOptions = {
skipPackageJson: false,
Expand Down
Loading