Skip to content

Commit 931c62d

Browse files
committed
fix(@angular/build): allow unit-test runner config with absolute path
The `unit-test` builder now supports passing an absolute path as the value of the `runnerConfig` option. Previously all paths were joined with the workspace root. (cherry picked from commit c9389ac)
1 parent fec106b commit 931c62d

File tree

1 file changed

+1
-1
lines changed
  • packages/angular/build/src/builders/unit-test

1 file changed

+1
-1
lines changed

packages/angular/build/src/builders/unit-test/options.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ export async function normalizeOptions(
127127
dumpVirtualFiles: options.dumpVirtualFiles,
128128
listTests: options.listTests,
129129
runnerConfig:
130-
typeof runnerConfig === 'string' ? path.join(workspaceRoot, runnerConfig) : runnerConfig,
130+
typeof runnerConfig === 'string' ? path.resolve(workspaceRoot, runnerConfig) : runnerConfig,
131131
};
132132
}
133133

0 commit comments

Comments
 (0)