Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion files/babel.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,14 @@ const {
templateCompatSupport,
} = require('@embroider/compat/babel');

const macros = buildMacros();
const macros = buildMacros({
configure(config) {
if (process.env.EMBER_ENV === "test") {
config.enableRuntimeMode();
}
},
});


// For scenario testing
const isCompat = Boolean(process.env.ENABLE_COMPAT_BUILD);
Expand Down
2 changes: 1 addition & 1 deletion files/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"lint:types": "ember-tsc --noEmit<% } %>",
"lint:publish": "<%= runScript %> build && publint run --level error",
"start": "vite dev",
"test": "vite build --mode=development --out-dir dist-tests && testem --file testem.cjs ci --port 0",
"test": "EMBER_ENV=test vite build --mode=development --out-dir dist-tests && testem --file testem.cjs ci --port 0",
"prepack": "rollup --config"
},
"dependencies": {
Expand Down
Loading