Skip to content

Commit 8d7224c

Browse files
committed
Transpile for node tests
1 parent 0bc4fe1 commit 8d7224c

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ jobs:
183183
env:
184184
DISABLE_SOURCE_MAPS: true
185185
BROCCOLI_ENV: production
186+
SHOULD_TRANSPILE_FOR_NODE: true
186187
run: yarn ember build -prod
187188
- name: test
188189
run: yarn test:node

config/targets.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@ const shouldTranspile = Boolean(process.env.SHOULD_TRANSPILE);
66

77
module.exports = {
88
browsers: isProduction || shouldTranspile ? allSupportedBrowsers : modernBrowsers,
9+
...(process.env.SHOULD_TRANSPILE_FOR_NODE ? { node: 'current' } : undefined),
910
};

0 commit comments

Comments
 (0)