-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #40 from ngneat/latest-nx
Updated to Latest Nx Version
- Loading branch information
Showing
20 changed files
with
15,923 additions
and
14,011 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"name": "ngneat-dag-demo-e2e", | ||
"$schema": "../../node_modules/nx/schemas/project-schema.json", | ||
"sourceRoot": "apps/ngneat-dag-demo-e2e/src", | ||
"projectType": "application", | ||
"targets": { | ||
"e2e": { | ||
"executor": "@nrwl/cypress:cypress", | ||
"options": { | ||
"cypressConfig": "apps/ngneat-dag-demo-e2e/cypress.config.js", | ||
"tsConfig": "apps/ngneat-dag-demo-e2e/tsconfig.e2e.json", | ||
"devServerTarget": "ngneat-dag-demo:serve" | ||
}, | ||
"configurations": { | ||
"production": { | ||
"devServerTarget": "ngneat-dag-demo:serve:production" | ||
} | ||
} | ||
}, | ||
"lint": { | ||
"executor": "@nrwl/linter:eslint", | ||
"options": { | ||
"lintFilePatterns": ["apps/ngneat-dag-demo-e2e/**/*.{js,ts}"] | ||
} | ||
} | ||
}, | ||
"tags": [], | ||
"implicitDependencies": ["ngneat-dag-demo"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,34 @@ | ||
module.exports = { | ||
displayName: 'ngneat-dag-demo', | ||
|
||
testEnvironment: 'jest-environment-jsdom', | ||
setupFilesAfterEnv: ['<rootDir>/src/test-setup.ts'], | ||
globals: { | ||
'ts-jest': { | ||
stringifyContentPathRegex: '\\.(html|svg)$', | ||
|
||
tsconfig: '<rootDir>/tsconfig.spec.json', | ||
}, | ||
}, | ||
globals: {}, | ||
coverageDirectory: '../../coverage/apps/ngneat-dag-demo', | ||
snapshotSerializers: [ | ||
'jest-preset-angular/build/serializers/no-ng-attributes', | ||
'jest-preset-angular/build/serializers/ng-snapshot', | ||
'jest-preset-angular/build/serializers/html-comment', | ||
], | ||
transform: { | ||
'^.+.(ts|mjs|js|html)$': 'jest-preset-angular', | ||
'^.+.(ts|mjs|js|html)$': [ | ||
'jest-preset-angular', | ||
{ | ||
stringifyContentPathRegex: '\\.(html|svg)$', | ||
|
||
tsconfig: '<rootDir>/tsconfig.spec.json', | ||
}, | ||
], | ||
}, | ||
transformIgnorePatterns: ['node_modules/(?!.*.mjs$)'], | ||
preset: '../../jest.preset.ts', | ||
/* TODO: Update to latest Jest snapshotFormat | ||
* By default Nx has kept the older style of Jest Snapshot formats | ||
* to prevent breaking of any existing tests with snapshots. | ||
* It's recommend you update to the latest format. | ||
* You can do this by removing snapshotFormat property | ||
* and running tests with --update-snapshot flag. | ||
* Example: From within the project directory, run "nx test --update-snapshot" | ||
* More info: https://jestjs.io/docs/upgrading-to-jest29#snapshot-format | ||
*/ | ||
snapshotFormat: { escapeString: true, printBasicPrototype: true }, | ||
}; |
Oops, something went wrong.