Skip to content

Commit

Permalink
fix(mon-pix): fix glimmer unit tests with code splitting
Browse files Browse the repository at this point in the history
  • Loading branch information
bpetetot authored Sep 26, 2024
1 parent 24a3614 commit fee1e58
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions mon-pix/ember-cli-build.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ module.exports = function (defaults) {
return require('@embroider/compat').compatBuild(app, Webpack, {
staticAddonTestSupportTrees: true,
staticAddonTrees: true,
staticHelpers: true,
staticModifiers: true,
staticComponents: true,
staticHelpers: app.env === 'production',
staticComponents: app.env === 'production',
packagerOptions: {
webpackConfig: {
devtool: sourceMapConfig[process.env.CI ? 'test' : (process.env.NODE_ENV ?? 'default')],
Expand Down
2 changes: 1 addition & 1 deletion mon-pix/tests/helpers/create-glimmer-component.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import GlimmerComponentManager from '@glimmer/component/-private/ember-component

export default function createComponent(lookupPath, named = {}) {
const { owner } = getContext();
const { class: componentClass } = owner.factoryFor(lookupPath);
const { class: componentClass } = owner.factoryFor(`component:${lookupPath}`);
const componentManager = new GlimmerComponentManager(owner);
return componentManager.createComponent(componentClass, { named });
}

0 comments on commit fee1e58

Please sign in to comment.