Skip to content

Commit 79e2064

Browse files
committed
Map core package src files in scrolled package tests
Do not require Rollup build before being able to run scrolled Jest specs.
1 parent d20f9e1 commit 79e2064

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

entry_types/scrolled/package/jest.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ module.exports = {
2626

2727
// Make specs run even if ignored json file is not present
2828
".*\\.storybook/seed\\.json$": "<rootDir>/spec/support/fakeSeed.json",
29+
30+
// Resolve pageflow subpath imports and internal aliases
31+
"^pageflow/(.+)$": "<rootDir>/../../../package/src/$1/index.js",
32+
"^\\$state$": "<rootDir>/../../../package/src/editor/state.js",
33+
2934
...moduleNameMapper
3035
},
3136
transform: {

0 commit comments

Comments
 (0)