-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
disable map.component test for the time being, deal with ai/nanoid#363 …
…nanoid issues later
- Loading branch information
Showing
5 changed files
with
366 additions
and
324 deletions.
There are no files selected for viewing
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
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,15 +1,25 @@ | ||
const { pathsToModuleNameMapper } = require('ts-jest'); | ||
const { compilerOptions } = require('./tsconfig'); | ||
|
||
// preset, setupFilesAfterEnv and globalSetup documented in https://www.npmjs.com/package/jest-preset-angular | ||
// Angular 14: globalSetup is super important, or you constructor / Inject warnings such as | ||
// NG0202: This constructor is not compatible with Angular Dependency Injection, see also | ||
// https://github.com/angular/angular/issues/45021 | ||
// | ||
// To have some of your "node_modules" files transformed, specify a custom "transformIgnorePatterns" in your config. | ||
// You can add support for multiple packages at once by separating them with a |: "node_modules/(?!module1|module2|etc)" | ||
// https://github.com/ai/nanoid/issues/363 | ||
module.exports = { | ||
preset: 'jest-preset-angular', | ||
roots: ['<rootDir>/src/'], | ||
testMatch: ['**/+(*.)+(spec).+(ts)'], | ||
setupFilesAfterEnv: ['<rootDir>/src/test.ts'], | ||
setupFilesAfterEnv: ['<rootDir>/jest-test-setup.ts'], | ||
globalSetup: 'jest-preset-angular/global-setup', | ||
collectCoverage: true, | ||
coverageReporters: ['html','lcovonly'], | ||
coverageDirectory: '<rootDir>/coverage/', | ||
moduleNameMapper: pathsToModuleNameMapper(compilerOptions.paths || {}, { | ||
prefix: '<rootDir>/src' | ||
}) | ||
// transformIgnorePatterns: [`/node_modules/(?!nanoid)`] | ||
}; |
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
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
Oops, something went wrong.