Skip to content

Commit

Permalink
feat(embroider): use only @embroider/test-setup for testing embroider
Browse files Browse the repository at this point in the history
  • Loading branch information
BobrImperator committed Jul 31, 2023
1 parent a012dab commit 6e2a256
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 69 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,13 +94,10 @@ jobs:
test-suite: "test:one embroider-optimized"
allow-failure: false
- workspace: test-app
test-suite: "test:one embroider-lts-4.12"
allow-failure: false
- workspace: test-app
test-suite: "test:one embroider-default"
test-suite: "test:one embroider-safe"
allow-failure: false
- workspace: test-app
test-suite: "test:one embroider-ember-5"
test-suite: "test:one embroider-optimized"
allow-failure: false

steps:
Expand Down
1 change: 0 additions & 1 deletion packages/ember-simple-auth/src/utils/is-fastboot.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/* eslint-disable no-unused-vars */
// @ts-check
import { assert } from '@ember/debug';
import ApplicationInstance from '@ember/application/instance';

export default function isFastBoot(owner) {
assert('You must pass in an owner to isFastBoot!', owner && typeof owner.lookup === 'function');
Expand Down
18 changes: 2 additions & 16 deletions packages/test-app/ember-cli-build.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,6 @@ module.exports = function(defaults) {

app.import('node_modules/bootstrap/dist/css/bootstrap.css');

if (process.env.ESA_TEST_EMBROIDER) {
const { Webpack } = require('@embroider/webpack');
return require('@embroider/compat').compatBuild(app, Webpack, {
staticAddonTestSupportTrees: true,
staticAddonTrees: true,
staticHelpers: true,
staticModifiers: true,
staticComponents: true,
staticEmberSource: true,
packagerOptions: {
webpackConfig: {},
},
});
} else {
return app.toTree();
}
const { maybeEmbroider } = require('@embroider/test-setup');
return maybeEmbroider(app);
};
6 changes: 3 additions & 3 deletions packages/test-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@
"@ember/optional-features": "2.0.0",
"@ember/string": "3.1.1",
"@ember/test-helpers": "3.2.0",
"@embroider/compat": "3.2.0",
"@embroider/core": "3.2.0",
"@embroider/compat": "^3.2.0",
"@embroider/core": "^3.2.0",
"@embroider/test-setup": "3.0.1",
"@embroider/webpack": "3.1.4",
"@embroider/webpack": "^3.1.4",
"@glimmer/component": "1.1.2",
"@glimmer/tracking": "1.1.2",
"body-parser": "1.20.2",
Expand Down
39 changes: 0 additions & 39 deletions packages/test-esa/config/ember-try.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,45 +67,6 @@ module.exports = function() {
},
},
},
{
name: 'embroider-lts-4.12',
env: {
ESA_TEST_EMBROIDER: true,
},
npm: {
devDependencies: {
'ember-cli': '~4.12.0',
'ember-source': '~4.12.0',
'ember-data': '~4.12.1',
torii: null
},
}
},
{
name: 'embroider-ember-5',
env: {
ESA_TEST_EMBROIDER: true,
},
npm: {
devDependencies: {
'ember-cli': '~5.0.0',
'ember-data': '~5.0.0',
'ember-source': '~5.0.0',
torii: null,
},
}
},
{
name: 'embroider-default',
env: {
ESA_TEST_EMBROIDER: true,
},
npm: {
devDependencies: {
torii: null,
},
}
},
{
name: 'ember-release',
npm: {
Expand Down
10 changes: 5 additions & 5 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6e2a256

Please sign in to comment.