Skip to content

Commit

Permalink
fix babel config location in resolver tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mansona committed May 23, 2024
1 parent f14736a commit abf14c8
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 @@ -98,14 +98,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 @@ -130,12 +130,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 abf14c8

Please sign in to comment.