* fix(testing): jest.preset.ts => jest.preset.js * fix(testing): update to export default * fix(testing): migration for moving to export default * fix(testing): add eslint ignore comments for jest config properties fixes: #10021 * fix(testing): update tsconfig.spec.json for next apps with project parserOptions fixes: #9982 * fix(testing): prevent renaming root jest preset fixes: #9973 * fix(testing): update snapshots for export default * fix(testing): bump migration version to run * fix(testing): make sure default jest tests pass for various projects * fix(js): generate correct jest config for --compiler=swc --js
11 lines
294 B
TypeScript
11 lines
294 B
TypeScript
export const nxPreset = {
|
|
testMatch: ['**/+(*.)+(spec|test).+(ts|js)?(x)'],
|
|
resolver: '@nrwl/jest/plugins/resolver',
|
|
moduleFileExtensions: ['ts', 'js', 'mjs', 'html'],
|
|
coverageReporters: ['html'],
|
|
transform: {
|
|
'^.+\\.(ts|js|html)$': 'ts-jest',
|
|
},
|
|
testEnvironment: 'jsdom',
|
|
};
|