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

Commit bd4fa9c

Browse files
Fatmedtopuzov
Fatme
authored andcommitted
fix: add support for ts files on test command when --bundle is provided (#848)
Rel to: NativeScript/nativescript-cli#4477 NativeScript/nativescript-cli#1798
1 parent 20c43ac commit bd4fa9c

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
@@ -2,7 +2,7 @@ const { join, relative } = require("path");
22

33
module.exports = function ({ appFullPath, projectRoot, angular, rootPagesRegExp }) {
44
// TODO: Consider to use the files property from karma.conf.js
5-
const testFilesRegExp = /tests\/.*\.js/;
5+
const testFilesRegExp = /tests\/.*\.(ts|js)/;
66
const runnerFullPath = join(projectRoot, "node_modules", "nativescript-unit-test-runner");
77
const runnerRelativePath = relative(appFullPath, runnerFullPath);
88
let source = `

0 commit comments

Comments
 (0)