-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
2) Add tests for all components, store and router. 3) Port `CelebrityGuess` to use `WinnerCard`, `LoserCard` and `GameSlide`. 4) Delete unused `About.vue`. 5) Added mocks for WebAudio API for tests. 6) Upgrade to latest `vue/test-utils`. 7) Added coverage to tests (now up to 95%!). 8) Migrate off of `vue-cli` test related stuff to straight `jest` with `babel`.
- Loading branch information
1 parent
ac2568c
commit fe2adc7
Showing
36 changed files
with
1,755 additions
and
2,363 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
tests/test-utils.js |
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,8 @@ | ||
import { mocks } from './tests/test-utils' | ||
|
||
// Audio mock | ||
/* eslint no-undef: "off" */ | ||
global.Audio = jest.fn().mockImplementation(() => ({ | ||
pause: mocks.Audio.pause, | ||
play: mocks.Audio.play | ||
})) |
Oops, something went wrong.