Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Replace Karma with Jest, run tests on CI (#87) #101

Merged
merged 2 commits into from
Dec 9, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ coverage
.DS_Store
npm-debug.log
compiled
.idea
20 changes: 8 additions & 12 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
sudo: required
dist: trusty
language: node_js

node_js:
- "6"
- '10'

before_script:
- npm install

before_install:
- export CHROME_BIN=/usr/bin/google-chrome
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- sudo apt-get update
- sudo apt-get install -y libappindicator1 fonts-liberation
- wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
- sudo dpkg -i google-chrome*.deb
- sudo apt-get install build-essential
script:
- npm run lint
- npm run test
12 changes: 12 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
module.exports = {
preset: "jest-preset-angular",
setupFilesAfterEnv: ["./spec/setup-tests.ts"],
globals: {
"ts-jest": {
"tsConfig": "<rootDir>/tsconfig.json",
"diagnostics": false
}
},
testRegex: "/spec/.*\\.spec\\.ts$",
moduleFileExtensions: ["ts", "js", "node"]
};
49 changes: 0 additions & 49 deletions karma.conf.js

This file was deleted.

Loading