Skip to content

Commit bac594f

Browse files
committed
fix: use correct files pattern in karma.config on windows
1 parent def94a8 commit bac594f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/commands/test-init.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import * as path from 'path';
22
import { TESTING_FRAMEWORKS } from '../constants';
3+
import { fromWindowsRelativePathToUnix } from '../common/helpers';
34

45
class TestInitCommand implements ICommand {
56
public allowedParameters: ICommandParameter[] = [];
@@ -105,7 +106,7 @@ class TestInitCommand implements ICommand {
105106
const frameworks = [frameworkToInstall].concat(this.karmaConfigAdditionalFrameworks[frameworkToInstall] || [])
106107
.map(fw => `'${fw}'`)
107108
.join(', ');
108-
const testFiles = `'${relativeTestsDir}/**/*.js'`;
109+
const testFiles = `'${fromWindowsRelativePathToUnix(relativeTestsDir)}/**/*.js'`;
109110
const karmaConfTemplate = this.$resources.readText('test/karma.conf.js');
110111
const karmaConf = _.template(karmaConfTemplate)({ frameworks, testFiles });
111112

0 commit comments

Comments
 (0)