This repository was archived by the owner on May 31, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +8
-9
lines changed Expand file tree Collapse file tree 3 files changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -22,9 +22,7 @@ module.exports = {
22
22
} ,
23
23
setupFilesAfterEnv : [ "./tests/setup/expect.js" ] ,
24
24
snapshotSerializers : [ "jest-serializer-vue" ] ,
25
- testMatch : [
26
- "**/tests/unit/**/*.spec.(js|jsx|ts|tsx)|**/__tests__/*.(js|jsx|ts|tsx)" ,
27
- ] ,
25
+ testMatch : [ "**/tests/(unit|e2e)/**/*.spec.(js|jsx|ts|tsx)" ] ,
28
26
testURL : "http://localhost/" ,
29
27
watchPlugins : [
30
28
"jest-watch-typeahead/filename" ,
Original file line number Diff line number Diff line change 18
18
"postuninstall" : " electron-builder install-app-deps" ,
19
19
"test:unit" : " vue-cli-service test:unit" ,
20
20
"test:unit:cover" : " vue-cli-service test:unit --coverage" ,
21
+ "test:e2e" : " vue-cli-service test:unit 'tests/e2e'" ,
21
22
"prettier:check" : " prettier --check '**/*'" ,
22
23
"prettier:fix" : " prettier --write '**/*'" ,
23
24
"purge" : " rm -rf node_modules ; rm -rf dist ; rm -rf dist_electron ; rm -rf coverage" ,
Original file line number Diff line number Diff line change
1
+ import spectron from "spectron" ;
1
2
import testWithSpectron from "vue-cli-plugin-electron-builder/lib/testWithSpectron" ;
2
3
import chai from "chai" ;
3
4
import chaiAsPromised from "chai-as-promised" ;
@@ -10,12 +11,7 @@ describe("Application launch", function() {
10
11
let stopServe ;
11
12
12
13
beforeEach ( function ( ) {
13
- // TODO: THIS CALL IS BUGGED
14
- // BODY: Calling this function causes it to open as many windows as it can
15
- // BODY: until it times out
16
- // BODY: (pending nklayman/vue-cli-plugin-electron-builder#467)
17
-
18
- return testWithSpectron ( ) . then ( instance => {
14
+ return testWithSpectron ( spectron ) . then ( instance => {
19
15
app = instance . app ;
20
16
stopServe = instance . stopServe ;
21
17
} ) ;
@@ -27,6 +23,10 @@ describe("Application launch", function() {
27
23
28
24
afterEach ( function ( ) {
29
25
if ( app && app . isRunning ( ) ) {
26
+ // TODO: This call is also bugged
27
+ // BODY: This is pending nklayman/vue-cli-plugin-electron-builder#647.
28
+ // BODY: See https://github.com/thislooksfun/earthdawn/issues/154 for more
29
+ // BODY: info.
30
30
return stopServe ( ) ;
31
31
}
32
32
} ) ;
You can’t perform that action at this time.
0 commit comments