Skip to content

Commit

Permalink
Merge pull request #40 from ngneat/latest-nx
Browse files Browse the repository at this point in the history
Updated to Latest Nx Version
  • Loading branch information
pjlamb12 authored Apr 16, 2023
2 parents b38eed6 + c371d5a commit 0e9d440
Show file tree
Hide file tree
Showing 20 changed files with 15,923 additions and 14,011 deletions.
308 changes: 0 additions & 308 deletions angular.json

This file was deleted.

29 changes: 29 additions & 0 deletions apps/ngneat-dag-demo-e2e/project.json
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"]
}
28 changes: 19 additions & 9 deletions apps/ngneat-dag-demo/jest.config.ts
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 },
};
Loading

0 comments on commit 0e9d440

Please sign in to comment.