Skip to content

Commit 3def2b7

Browse files
fix: add @stencil/core/testing/jest-preset to export map (#5900)
1 parent 0e56d43 commit 3def2b7

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

package.json

+3
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,9 @@
8080
"types": "./testing/index.d.ts",
8181
"require": "./testing/index.js"
8282
},
83+
"./testing/jest-preset": {
84+
"require": "./testing/jest-preset.js"
85+
},
8386
"./testing/*": {
8487
"import": "./testing/*",
8588
"require": "./testing/*"

test/end-to-end/exportMap/index.js

+2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ const { MockDocument } = require('@stencil/core/mock-doc');
77
const appData = require('@stencil/core/internal/app-data');
88
const { createNodeLogger } = require('@stencil/core/sys/node');
99
const { createTesting } = require('@stencil/core/testing');
10+
const preset = require('@stencil/core/testing/jest-preset');
1011

1112
assert(typeof version === 'string');
1213
assert(typeof run, 'function');
@@ -15,6 +16,7 @@ assert(typeof MockDocument === 'function');
1516
assert(Object.keys(appData).length === 3);
1617
assert(typeof createNodeLogger === 'function');
1718
assert(typeof createTesting === 'function');
19+
assert(preset.moduleFileExtensions);
1820

1921
console.log(`🎉 All CJS imports successfully resolved!`);
2022
console.log('✅ passed!\n');

0 commit comments

Comments
 (0)