forked from ngrx/effects
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tests.js
28 lines (20 loc) · 785 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
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 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());
runner.loadConfig({
spec_dir: 'spec',
spec_files: [ '**/*.spec.ts' ]
});
runner.execute();