-
Notifications
You must be signed in to change notification settings - Fork 52
/
tests.js
30 lines (22 loc) · 888 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('ngx-jsonapi', __dirname + '/src');
runner.loadConfig({
spec_dir: 'src',
spec_files: ['**/*.spec.ts']
});
runner.execute();