Skip to content

Commit

Permalink
Merge pull request #1947 from embroider-build/babel-config-resolver
Browse files Browse the repository at this point in the history
fix babel config location in resolver tests
  • Loading branch information
ef4 authored May 29, 2024
2 parents 0653f6d + c2e02c7 commit 217e7a8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tests/scenarios/compat-resolver-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,14 +105,14 @@ Scenarios.fromProject(() => new Project())
};

givenFiles({
'_babel_config.js': `
'node_modules/.embroider/_babel_config_.js': `
module.exports = {
plugins: ${JSON.stringify([
[require.resolve('babel-plugin-ember-template-compilation'), etcOptions],
[require.resolve('@embroider/compat/src/babel-plugin-adjust-imports'), { appRoot: app.dir }],
])}
}`,
'_babel_filter.js': `
'node_modules/.embroider/_babel_filter.js': `
module.exports = function(filename) { return true }
`,
'node_modules/.embroider/resolver.json': JSON.stringify(resolverOptions),
Expand Down
4 changes: 2 additions & 2 deletions tests/scenarios/core-resolver-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,12 +137,12 @@ Scenarios.fromProject(() => new Project())
};

givenFiles({
'_babel_config.js': `
'node_modules/.embroider/_babel_config_.js': `
module.exports = {
plugins: []
}
`,
'_babel_filter.js': `
'node_modules/.embroider/_babel_filter.js': `
module.exports = function(filename) { return true }
`,
'node_modules/.embroider/resolver.json': JSON.stringify(resolverOptions),
Expand Down

0 comments on commit 217e7a8

Please sign in to comment.