File tree Expand file tree Collapse file tree 5 files changed +22
-7
lines changed Expand file tree Collapse file tree 5 files changed +22
-7
lines changed Original file line number Diff line number Diff line change 1212 "webRoot" : " ${workspaceRoot}/src" ,
1313 "userDataDir" : " ${workspaceRoot}/.chrome" ,
1414 "sourceMapPathOverrides" : {
15- "webpack:///./src/ *" : " ${webRoot}/*"
15+ "webpack:///*" : " ${webRoot}/*"
1616 }
1717 }
1818 ]
Original file line number Diff line number Diff line change @@ -18,8 +18,8 @@ module.exports = {
1818 rimraf ( 'test/coverage-karma' ) ,
1919 'karma start test/karma.conf.js'
2020 ) ,
21- watch : 'karma start test/karma.conf.js --no-single-run' ,
22- debug : 'karma start test/karma.conf.js --no-single-run --debug'
21+ watch : 'karma start test/karma.conf.js --auto-watch -- no-single-run' ,
22+ debug : 'karma start test/karma.conf.js --auto-watch -- no-single-run --debug'
2323 } ,
2424 all : concurrent ( {
2525 browser : series . nps ( 'test.karma' , 'e2e' ) ,
Original file line number Diff line number Diff line change 5656 ],
5757 "testEnvironment" : " node" ,
5858 "moduleNameMapper" : {
59- "aurelia-(.*)" : " <rootDir>/node_modules/$1"
59+ "aurelia-(.*)" : " <rootDir>/node_modules/aurelia- $1"
6060 },
6161 "collectCoverage" : true ,
6262 "collectCoverageFrom" : [
Original file line number Diff line number Diff line change @@ -32,7 +32,21 @@ exports.config = {
3232 capabilities : {
3333 'browserName' : 'chrome' ,
3434 'chromeOptions' : {
35- 'args' : [ 'show-fps-counter=true' ]
35+ 'args' : [
36+ '--show-fps-counter' ,
37+ '--no-default-browser-check' ,
38+ '--no-first-run' ,
39+ '--disable-default-apps' ,
40+ '--disable-popup-blocking' ,
41+ '--disable-translate' ,
42+ '--disable-background-timer-throttling' ,
43+ '--disable-renderer-backgrounding' ,
44+ '--disable-device-discovery-notifications' ,
45+ /* enable these if you'd like to test using Chrome Headless
46+ '--no-gpu',
47+ '--headless'
48+ */
49+ ]
3650 }
3751 } ,
3852
Original file line number Diff line number Diff line change 11import { bootstrap } from 'aurelia-bootstrapper' ;
22import { StageComponent } from 'aurelia-testing' ;
3+ import { PLATFORM } from 'aurelia-pal' ;
34
45describe ( 'WelcomeComponent' , ( ) => {
56 let component ;
67
78 beforeEach ( async ( ) => {
89 component = StageComponent
910 . withResources ( [
10- '../../src/app/modules/welcome/welcome.vm' ,
11- '../../src/app/resources/converters/date-format.converter'
11+ PLATFORM . moduleName ( '../../src/app/modules/welcome/welcome.vm' ) ,
12+ PLATFORM . moduleName ( '../../src/app/resources/converters/date-format.converter' )
1213 ] )
1314 . inView ( '<welcome-view-model></welcome-view-model>' ) ;
1415 await component . create ( bootstrap ) ;
You can’t perform that action at this time.
0 commit comments