forked from ngrx/platform
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tests.js
31 lines (22 loc) · 889 Bytes
/
tests.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
require('ts-node/register');
require('core-js/es7/reflect');
require('zone.js/dist/zone-node.js');
require('zone.js/dist/long-stack-trace-zone.js');
require('zone.js/dist/proxy.js');
require('zone.js/dist/sync-test.js');
require('zone.js/dist/async-test.js');
require('zone.js/dist/fake-async-test.js');
const Jasmine = require('jasmine');
const moduleAlias = require('module-alias');
const runner = new Jasmine();
global.jasmine = runner.jasmine;
require('zone.js/dist/jasmine-patch.js');
const { getTestBed } = require('@angular/core/testing');
const { ServerTestingModule, platformServerTesting } = require('@angular/platform-server/testing');
getTestBed().initTestEnvironment(ServerTestingModule, platformServerTesting());
moduleAlias.addAlias('@ngrx', __dirname + '/modules');
runner.loadConfig({
spec_dir: 'modules',
spec_files: [ '**/*.spec.ts' ]
});
runner.execute();