From abf14c81747dbf6a86c1d71067da4689f6a951ad Mon Sep 17 00:00:00 2001 From: Chris Manson Date: Thu, 23 May 2024 13:18:04 +0100 Subject: [PATCH] fix babel config location in resolver tests --- tests/scenarios/compat-resolver-test.ts | 4 ++-- tests/scenarios/core-resolver-test.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/scenarios/compat-resolver-test.ts b/tests/scenarios/compat-resolver-test.ts index 1030d05780..f7a67ad651 100644 --- a/tests/scenarios/compat-resolver-test.ts +++ b/tests/scenarios/compat-resolver-test.ts @@ -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), diff --git a/tests/scenarios/core-resolver-test.ts b/tests/scenarios/core-resolver-test.ts index d25d567ea4..d3b6af2f0e 100644 --- a/tests/scenarios/core-resolver-test.ts +++ b/tests/scenarios/core-resolver-test.ts @@ -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),