Skip to content

Commit

Permalink
fix(core): add missing screenshot export (#5909)
Browse files Browse the repository at this point in the history
* fix(core): add missing screenshot export

* added tests
  • Loading branch information
christian-bromann authored Jul 26, 2024
1 parent 7ae36aa commit 764a8ba
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@
"import": "./compiler/*",
"types": "./compiler/*"
},
"./screenshot": {
"require": "./screenshot/index.js",
"types": "./screenshot/index.d.ts"
},
"./sys/node": {
"import": "./sys/node/index.js",
"require": "./sys/node/index.js",
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 @@ -8,6 +8,7 @@ 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');
const { ScreenshotLocalConnector } = require('@stencil/core/screenshot');

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

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

0 comments on commit 764a8ba

Please sign in to comment.