Open fsmanuel opened 2 years ago
From the discussion https://github.com/ember-intl/cp-validations/pull/90#discussion_r975732239
function embroiderOptimized(extension) {
return extendScenario({
name: 'embroider-optimized',
npm: {
devDependencies: {
'@embroider/core': currentEmbroiderVersion,
'@embroider/webpack': currentEmbroiderVersion,
'@embroider/compat': currentEmbroiderVersion,
// Webpack is a peer dependency of `@embroider/webpack`
webpack: '^5.0.0',
},
},
env: {
EMBROIDER_TEST_SETUP_OPTIONS: 'optimized',
},
}, extension);
}
I think ember-auto-import
v2
is present via @embroider/util
which has "ember-auto-import": "^2.2.0",
as a dependency. Also the embroider-safe
scenario works which has the same devDependencies
as embroiderOptimized
from above.
$ npm ls @embroider/util
@ember-intl/cp-validations@5.0.0 /Users/manuel/Code/opensource/cp-validations
└─┬ @ember/test-helpers@2.8.1
└── @embroider/util@1.8.3
The
embroider-optimized
scenario tests fail with the following errors:Seems like
instance
is undefined inembroider-optimized
scenario.