Skip to content

Commit

Permalink
fix the legacy mocha tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mikrostew committed Nov 29, 2022
1 parent 03c8d40 commit 8f980e4
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/ember-cli-fastboot/test/fastboot-config-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ describe('FastBoot config', function () {
app.editPackageJSON((pkg) => {
delete pkg.devDependencies['ember-fetch'];
delete pkg.devDependencies['ember-welcome-page'];
// needed because @ember-data/store does `FastBoot.require('crypto')`
pkg.fastbootDependencies = ['crypto'];
});
return app.run('npm', 'install');
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ describe('FastBootLocation Configuration', function () {
app.editPackageJSON((pkg) => {
delete pkg.devDependencies['ember-fetch'];
delete pkg.devDependencies['ember-welcome-page'];
// needed because @ember-data/store does `FastBoot.require('crypto')`
pkg.fastbootDependencies = ['crypto'];
});
return app.run('npm', 'install');
})
Expand Down
2 changes: 2 additions & 0 deletions packages/ember-cli-fastboot/test/fastboot-location-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ describe('FastBootLocation', function () {
app.editPackageJSON((pkg) => {
delete pkg.devDependencies['ember-fetch'];
delete pkg.devDependencies['ember-welcome-page'];
// needed because @ember-data/store does `FastBoot.require('crypto')`
pkg.fastbootDependencies = ['crypto'];
});
return app.run('npm', 'install');
})
Expand Down
2 changes: 2 additions & 0 deletions packages/ember-cli-fastboot/test/package-json-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ describe('generating package.json', function () {
customApp.editPackageJSON((pkg) => {
delete pkg.devDependencies['ember-fetch'];
delete pkg.devDependencies['ember-welcome-page'];
// needed because @ember-data/store does `FastBoot.require('crypto')`
pkg.fastbootDependencies = ['crypto'];
});
return customApp.run('npm', 'install');
})
Expand Down
2 changes: 2 additions & 0 deletions packages/ember-cli-fastboot/test/request-details-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ function injectMiddlewareAddon(app) {
};
delete pkg.devDependencies['ember-fetch'];
delete pkg.devDependencies['ember-welcome-page'];
// needed because @ember-data/store does `FastBoot.require('crypto')`
pkg.fastbootDependencies = ['crypto'];
});
return app.run('npm', 'install');
}
Expand Down
2 changes: 2 additions & 0 deletions packages/ember-cli-fastboot/test/root-url-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ describe('rootUrl acceptance', function () {
app.editPackageJSON((pkg) => {
delete pkg.devDependencies['ember-fetch'];
delete pkg.devDependencies['ember-welcome-page'];
// needed because @ember-data/store does `FastBoot.require('crypto')`
pkg.fastbootDependencies = ['crypto'];
});
return app.run('npm', 'install');
})
Expand Down

0 comments on commit 8f980e4

Please sign in to comment.