Skip to content

Commit 36c5822

Browse files
committed
(chore): reorg directories to show more acurate test cov
1 parent 0e95a28 commit 36c5822

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

config/karma.conf.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ module.exports = function(config) {
77
frameworks: ['jasmine'],
88
exclude: [],
99
files: [
10-
{ pattern: './test/spec-bundle.js', watched: false }
10+
{ pattern: './config/spec-bundle.js', watched: false }
1111
],
1212
preprocessors: {
13-
'./test/spec-bundle.js': ['coverage', 'webpack', 'sourcemap']
13+
'./config/spec-bundle.js': ['coverage', 'webpack', 'sourcemap']
1414
},
1515
webpack: testWebpackConfig({ env: 'test' }),
1616
webpackMiddleware: { stats: 'errors-only'},

test/spec-bundle.js renamed to config/spec-bundle.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ testing.TestBed.initTestEnvironment(
4747
* any file that ends with spec.ts and get its path. By passing in true
4848
* we say do this recursively
4949
*/
50-
const testContext = require.context('../test', true, /\.spec\.ts/);
50+
const testContext = require.context('../src', true, /\.spec\.ts/);
5151

5252
/*
5353
* get all the files, for each file, call the context function

test/components/footer/pager.component.spec.ts renamed to src/components/footer/pager.component.spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import {
33
TestBed
44
} from '@angular/core/testing';
55

6-
import { DataTablePagerComponent } from '../../../src/components/footer';
6+
import { DataTablePagerComponent } from './pager.component';
77

88
describe('DataTablePagerComponent', () => {
99
let fixture;

0 commit comments

Comments
 (0)