Skip to content

Commit 2f1c4af

Browse files
committed
wip!
1 parent 4e5f228 commit 2f1c4af

File tree

1 file changed

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

1 file changed

+2
-5
lines changed

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

Lines changed: 2 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));

0 commit comments

Comments
 (0)