diff --git a/examples/example-app-v10/jest-esm.config.js b/examples/example-app-v10/jest-esm.config.js index 4225231456..3e26fb2c24 100644 --- a/examples/example-app-v10/jest-esm.config.js +++ b/examples/example-app-v10/jest-esm.config.js @@ -1,4 +1,5 @@ require('jest-preset-angular/ngcc-jest-processor'); +const snapshotSerializers = require('jest-preset-angular/build/serializers/index'); /** @type {import('@jest/types').Config.InitialOptions} */ module.exports = { @@ -9,5 +10,6 @@ module.exports = { stringifyContentPathRegex: '\\.html$', }, }, + snapshotSerializers, setupFilesAfterEnv: ['/setup-jest.ts'], }; diff --git a/examples/example-app-v11/jest-esm.config.js b/examples/example-app-v11/jest-esm.config.js index 4225231456..3e26fb2c24 100644 --- a/examples/example-app-v11/jest-esm.config.js +++ b/examples/example-app-v11/jest-esm.config.js @@ -1,4 +1,5 @@ require('jest-preset-angular/ngcc-jest-processor'); +const snapshotSerializers = require('jest-preset-angular/build/serializers/index'); /** @type {import('@jest/types').Config.InitialOptions} */ module.exports = { @@ -9,5 +10,6 @@ module.exports = { stringifyContentPathRegex: '\\.html$', }, }, + snapshotSerializers, setupFilesAfterEnv: ['/setup-jest.ts'], }; diff --git a/examples/example-app-v12/jest-esm.config.js b/examples/example-app-v12/jest-esm.config.js index 4225231456..3e26fb2c24 100644 --- a/examples/example-app-v12/jest-esm.config.js +++ b/examples/example-app-v12/jest-esm.config.js @@ -1,4 +1,5 @@ require('jest-preset-angular/ngcc-jest-processor'); +const snapshotSerializers = require('jest-preset-angular/build/serializers/index'); /** @type {import('@jest/types').Config.InitialOptions} */ module.exports = { @@ -9,5 +10,6 @@ module.exports = { stringifyContentPathRegex: '\\.html$', }, }, + snapshotSerializers, setupFilesAfterEnv: ['/setup-jest.ts'], }; diff --git a/examples/example-app-v9/jest-esm.config.js b/examples/example-app-v9/jest-esm.config.js index 4225231456..3e26fb2c24 100644 --- a/examples/example-app-v9/jest-esm.config.js +++ b/examples/example-app-v9/jest-esm.config.js @@ -1,4 +1,5 @@ require('jest-preset-angular/ngcc-jest-processor'); +const snapshotSerializers = require('jest-preset-angular/build/serializers/index'); /** @type {import('@jest/types').Config.InitialOptions} */ module.exports = { @@ -9,5 +10,6 @@ module.exports = { stringifyContentPathRegex: '\\.html$', }, }, + snapshotSerializers, setupFilesAfterEnv: ['/setup-jest.ts'], }; diff --git a/package.json b/package.json index d486735e68..dcfe95e4a0 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,8 @@ "license": "MIT", "main": "build/index.js", "exports": { - ".": "./dist/index.js", + ".": "./build/index.js", + "./build/*": "./build/*.js", "./presets": "./presets/index.js", "./jest-preset": "./jest-preset.js", "./setup-jest": "./setup-jest.js",