This repository was archived by the owner on Oct 11, 2024. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2222 "homepage" : " https://github.com/qlik-oss/after-work.js#readme" ,
2323 "dependencies" : {
2424 "@after-work.js/server" : " ^5.0.0-beta.0" ,
25+ "@after-work.js/register" : " ^5.0.0-beta.0" ,
26+ "@after-work.js/utils" : " ^5.0.0-beta.0" ,
2527 "extend" : " 3.0.1" ,
2628 "handlebars" : " 4.0.11" ,
2729 "highlight.js" : " 9.12.0" ,
Original file line number Diff line number Diff line change 22const path = require ( 'path' ) ;
33const extend = require ( 'extend' ) ;
44const fs = require ( 'fs' ) ;
5+ const utils = require ( '@after-work.js/utils' ) ;
56const options = require ( './options' ) ;
67
78const protractor = {
@@ -24,9 +25,18 @@ const protractor = {
2425 } ,
2526 builder ( yargs ) {
2627 return yargs
27- . options ( options ) ;
28+ . options ( options )
29+ . coerce ( 'babel' , utils . coerceBabel )
30+ . coerce ( 'typescript' , utils . coerceTypescript ) ;
2831 } ,
2932 handler ( argv ) {
33+ argv . instrument = { //eslint-disable-line
34+ testExclude : {
35+ shouldInstrument ( ) {
36+ return false ;
37+ } ,
38+ } ,
39+ } ;
3040 if ( argv . presetEnv ) {
3141 require ( argv . presetEnv ) ;
3242 }
@@ -45,6 +55,9 @@ const protractor = {
4555 }
4656 }
4757 const config = protractor . getConfig ( argv ) ;
58+ if ( argv . hookRequire ) {
59+ require ( '@after-work.js/register' ) ( argv ) ;
60+ }
4861 argv . require . map ( require ) ;
4962 if ( argv . glob . length ) {
5063 config . specs = argv . glob ;
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ module.exports = {
4646 } ,
4747 type : 'object' ,
4848 } ,
49- tsc : {
49+ typescript : {
5050 description : 'Path to typescript compiler module' ,
5151 default : 'typescript' ,
5252 type : 'string' ,
You can’t perform that action at this time.
0 commit comments