This repository has been archived by the owner on Dec 26, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(tests): Removed Karma for unit tests (#110)
- Loading branch information
1 parent
7aa2e00
commit 00a9c90
Showing
8 changed files
with
62 additions
and
141 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
machine: | ||
node: | ||
version: 6.9.5 | ||
test: | ||
override: | ||
- npm run build |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters