Skip to content

Commit 85f2994

Browse files
committed
wip!
1 parent 4e5f228 commit 85f2994

File tree

1 file changed

+4
-5
lines changed
  • packages/angular/build/src/builders/unit-test/runners/vitest

1 file changed

+4
-5
lines changed

packages/angular/build/src/builders/unit-test/runners/vitest/plugins.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -171,11 +171,8 @@ export function createVitestPlugins(pluginOptions: PluginOptions): VitestPlugins
171171
name: 'angular:test-in-memory-provider',
172172
enforce: 'pre',
173173
resolveId: (id, importer) => {
174-
console.log({
175-
id,
176-
importer,
177-
});
178-
if (importer && (id[0] === '.' || id[0] === '/')) {
174+
console.log({ id, importer });
175+
if (importer && (id[0] === '.' || id[0] === '/' || id[0] === '\\')) {
179176
let fullPath;
180177
if (testFileToEntryPoint.has(importer)) {
181178
fullPath = toPosixPath(path.join(workspaceRoot, id));
@@ -189,6 +186,8 @@ export function createVitestPlugins(pluginOptions: PluginOptions): VitestPlugins
189186
}
190187
}
191188

189+
console.log({ keys: Object.keys(testFileToEntryPoint) });
190+
192191
if (testFileToEntryPoint.has(id)) {
193192
return id;
194193
}

0 commit comments

Comments
 (0)