Skip to content
This repository was archived by the owner on Aug 7, 2021. It is now read-only.

Commit dbd8c8d

Browse files
authored
Merge pull request #974 from NativeScript/fatme/fix-unit-test-runner
fix: require automatically only files from app folder of unit-test-runner
2 parents f5b21e6 + aa4442a commit dbd8c8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: unit-testing-config-loader.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const { convertSlashesInPath } = require("./projectHelpers");
44
module.exports = function ({ appFullPath, projectRoot, angular, rootPagesRegExp }) {
55
// TODO: Consider to use the files property from karma.conf.js
66
const testFilesRegExp = /tests\/.*\.(ts|js)/;
7-
const runnerFullPath = join(projectRoot, "node_modules", "nativescript-unit-test-runner");
7+
const runnerFullPath = join(projectRoot, "node_modules", "nativescript-unit-test-runner", "app");
88
const runnerRelativePath = convertSlashesInPath(relative(appFullPath, runnerFullPath));
99
const appCssFilePath = convertSlashesInPath(join(runnerRelativePath, "app.css"));
1010
let source = `

0 commit comments

Comments
 (0)