Skip to content

Commit 217e7a8

Browse files
authored
Merge pull request #1947 from embroider-build/babel-config-resolver
fix babel config location in resolver tests
2 parents 0653f6d + c2e02c7 commit 217e7a8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/scenarios/compat-resolver-test.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -105,14 +105,14 @@ Scenarios.fromProject(() => new Project())
105105
};
106106

107107
givenFiles({
108-
'_babel_config.js': `
108+
'node_modules/.embroider/_babel_config_.js': `
109109
module.exports = {
110110
plugins: ${JSON.stringify([
111111
[require.resolve('babel-plugin-ember-template-compilation'), etcOptions],
112112
[require.resolve('@embroider/compat/src/babel-plugin-adjust-imports'), { appRoot: app.dir }],
113113
])}
114114
}`,
115-
'_babel_filter.js': `
115+
'node_modules/.embroider/_babel_filter.js': `
116116
module.exports = function(filename) { return true }
117117
`,
118118
'node_modules/.embroider/resolver.json': JSON.stringify(resolverOptions),

tests/scenarios/core-resolver-test.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -137,12 +137,12 @@ Scenarios.fromProject(() => new Project())
137137
};
138138

139139
givenFiles({
140-
'_babel_config.js': `
140+
'node_modules/.embroider/_babel_config_.js': `
141141
module.exports = {
142142
plugins: []
143143
}
144144
`,
145-
'_babel_filter.js': `
145+
'node_modules/.embroider/_babel_filter.js': `
146146
module.exports = function(filename) { return true }
147147
`,
148148
'node_modules/.embroider/resolver.json': JSON.stringify(resolverOptions),

0 commit comments

Comments
 (0)