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

Commit fbd1717

Browse files
committed
chore: share the regex for root|page between bundle-config loader and unit-testing config loader
1 parent 16a06c8 commit fbd1717

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
const { join, relative } = require("path");
22

3-
module.exports = function ({ appFullPath, projectRoot, angular }) {
3+
module.exports = function ({ appFullPath, projectRoot, angular, rootPagesRegExp }) {
44
// TODO: Consider to use the files property from karma.conf.js
55
const testFilesRegExp = /tests\/.*\.js/;
6-
const rootPagesRegExp = /(root|page)\.(xml|css|js|ts|scss)/;
76
const runnerFullPath = join(projectRoot, "node_modules", "nativescript-unit-test-runner");
87
const runnerRelativePath = relative(appFullPath, runnerFullPath);
98
let source = `

0 commit comments

Comments
 (0)