From b0355814b490758dcdf8a5708524c63d94618014 Mon Sep 17 00:00:00 2001 From: Ahn Date: Fri, 28 May 2021 11:08:03 +0200 Subject: [PATCH] fix: add missing export `build` in `package.json` (#936) Closes #935 --- examples/example-app-v10/jest-esm.config.js | 2 ++ examples/example-app-v11/jest-esm.config.js | 2 ++ examples/example-app-v12/jest-esm.config.js | 2 ++ examples/example-app-v9/jest-esm.config.js | 2 ++ package.json | 3 ++- 5 files changed, 10 insertions(+), 1 deletion(-) 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",