Skip to content

Commit 347d681

Browse files
Fix template tests
1 parent b295f20 commit 347d681

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

packages/template/karma.conf.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
const karmaBase = require('../../config/karma.base');
1919

20-
const files = [`src/**/*.test.ts`];
20+
const files = [`test/**/*.test.ts`];
2121

2222
module.exports = function (config) {
2323
const karmaConfig = {

packages/template/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"test": "yarn type-check && run-p lint test:browser test:node",
2121
"test:ci": "node ../../scripts/run_tests_in_ci.js",
2222
"test:browser": "karma start --single-run",
23-
"test:node": "TS_NODE_COMPILER_OPTIONS='{\"module\":\"commonjs\"}' nyc --reporter lcovonly -- mocha src/**/*.test.* --config ../../config/mocharc.node.js",
23+
"test:node": "TS_NODE_COMPILER_OPTIONS='{\"module\":\"commonjs\"}' nyc --reporter lcovonly -- mocha test/**/*.test.* --config ../../config/mocharc.node.js",
2424
"type-check": "tsc -p . --noEmit",
2525
"prepare": "yarn build"
2626
},

packages/template/src/index.test.ts renamed to packages/template/test/index.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*/
1717

1818
import { expect } from 'chai';
19-
import { testFxn } from './index';
19+
import { testFxn } from '../src/index';
2020

2121
describe('Simple test', () => {
2222
it('Should skip this test');

0 commit comments

Comments
 (0)