Skip to content

Commit

Permalink
fix: add @stencil/core/testing/jest-preset to export map (#5900)
Browse files Browse the repository at this point in the history
  • Loading branch information
christian-bromann authored Jul 22, 2024
1 parent 0e56d43 commit 3def2b7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@
"types": "./testing/index.d.ts",
"require": "./testing/index.js"
},
"./testing/jest-preset": {
"require": "./testing/jest-preset.js"
},
"./testing/*": {
"import": "./testing/*",
"require": "./testing/*"
Expand Down
2 changes: 2 additions & 0 deletions test/end-to-end/exportMap/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ const { MockDocument } = require('@stencil/core/mock-doc');
const appData = require('@stencil/core/internal/app-data');
const { createNodeLogger } = require('@stencil/core/sys/node');
const { createTesting } = require('@stencil/core/testing');
const preset = require('@stencil/core/testing/jest-preset');

assert(typeof version === 'string');
assert(typeof run, 'function');
Expand All @@ -15,6 +16,7 @@ assert(typeof MockDocument === 'function');
assert(Object.keys(appData).length === 3);
assert(typeof createNodeLogger === 'function');
assert(typeof createTesting === 'function');
assert(preset.moduleFileExtensions);

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

0 comments on commit 3def2b7

Please sign in to comment.