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

fix: respect ts files on test command #848

Merged
merged 1 commit into from
Apr 4, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion unit-testing-config-loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const { join, relative } = require("path");

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