Skip to content

Commit 09d746c

Browse files
committed
fix test scenarios that use service injection directly
1 parent 2567c25 commit 09d746c

6 files changed

Lines changed: 27 additions & 0 deletions

File tree

pnpm-lock.yaml

Lines changed: 18 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test-packages/test-scenarios/fastboot-config-location-test.mjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ const { module: Qmodule, test } = qunit;
99

1010
appScenarios
1111
.map('fastboot-config-location', (project) => {
12+
// this test app has the service import itself so we need the polyfill to do its work
13+
project.linkDevDependency('ember-service-import-polyfill', { baseDir: '.' });
1214
merge(project.files, {
1315
app: {
1416
routes: {

test-packages/test-scenarios/fastboot-express-middleware-test.mjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ Object.assign(qunit.assert, {
2323

2424
appScenarios
2525
.map('fastboot-express-middleware', (project) => {
26+
// this test app has the service import itself so we need the polyfill to do its work
27+
project.linkDevDependency('ember-service-import-polyfill', { baseDir: '.' });
2628
merge(project.files, {
2729
app: {
2830
routes: {

test-packages/test-scenarios/fastboot-shoebox-test.mjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ const { module: Qmodule, test } = qunit;
99

1010
appScenarios
1111
.map('fastboot-shoebox-test', (project) => {
12+
// this test app has the service import itself so we need the polyfill to do its work
13+
project.linkDevDependency('ember-service-import-polyfill', { baseDir: '.' });
1214
merge(project.files, {
1315
app: {
1416
routes: {

test-packages/test-scenarios/integration-tests-test.mjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ appScenarios
1515
project.linkDependency('fake-addon', { baseDir: './' });
1616
project.linkDependency('fake-addon-2', { baseDir: './' });
1717
project.linkDependency('ember-cli-head', { baseDir: './' });
18+
// this test app has the service import itself so we need the polyfill to do its work
19+
project.linkDevDependency('ember-service-import-polyfill', { baseDir: '.' });
1820
})
1921
.forEachScenario((scenario) => {
2022
Qmodule(scenario.name, function (hooks) {

test-packages/test-scenarios/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"body-parser": "^1.18.3",
1313
"chai": "^4.3.7",
1414
"ember-cli-head": "^2.0.0",
15+
"ember-service-import-polyfill": "^1.0.0",
1516
"eslint": "^8.48.0",
1617
"eslint-config-prettier": "^9.0.0",
1718
"eslint-plugin-n": "^16.0.1",

0 commit comments

Comments
 (0)