File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2626 },
2727 "scripts" : {
2828 "build" : " tsc" ,
29- "test" : " mocha test- remote/**/*.test.ts --require ts-node/register --reporter dot " ,
30- "test:watch" : " mocha test-remote/**/*.test.ts --require ts-node/register --watch --watch-files src, test"
29+ "test:node " : " node --experimental-strip-types -- test --test-force-exit \" test- remote/**/*.test.ts\" " ,
30+ "test:watch" : " node --experimental-strip-types --test --test-force-exit --watch \" test-remote/**/*.test.ts \" "
3131 },
3232 "files" : [
3333 " *.d.ts" ,
Original file line number Diff line number Diff line change 1- import { runIntegrationTests } from '../../../integration/test-runner/index.js' ;
2- import { browserstackLauncher } from '../src/index.js' ;
1+ import { describe } from 'node:test' ;
2+ import { runIntegrationTests } from '../../../integration/test-runner/index.ts' ;
3+ import { browserstackLauncher } from '../dist/index.js' ;
34
45if ( ! process . env . BROWSER_STACK_USERNAME ) {
56 throw new Error ( 'Missing env var BROWSER_STACK_USERNAME' ) ;
@@ -20,9 +21,7 @@ const sharedCapabilities = {
2021 } `,
2122} ;
2223
23- describe ( 'test-runner-browserstack' , function ( ) {
24- this . timeout ( 200000 ) ;
25-
24+ describe ( 'test-runner-browserstack' , { timeout : 200000 } , ( ) => {
2625 function createConfig ( ) {
2726 return {
2827 browserStartTimeout : 1000 * 60 * 2 ,
Original file line number Diff line number Diff line change 2626 },
2727 "scripts" : {
2828 "build" : " tsc" ,
29- "test" : " mocha test- remote/**/*.test.ts --require ts-node/register --reporter dot " ,
30- "test:watch" : " mocha test-remote/**/*.test.ts --require ts-node/register --watch --watch-files src, test"
29+ "test:node " : " node --experimental-strip-types -- test --test-force-exit \" test- remote/**/*.test.ts\" " ,
30+ "test:watch" : " node --experimental-strip-types --test --test-force-exit --watch \" test-remote/**/*.test.ts \" "
3131 },
3232 "files" : [
3333 " *.d.ts" ,
Original file line number Diff line number Diff line change 1- import { runIntegrationTests } from '../../../integration/test-runner/index.js' ;
2- import { createSauceLabsLauncher } from '../src/index.js' ;
1+ import { describe } from 'node:test' ;
2+ import { runIntegrationTests } from '../../../integration/test-runner/index.ts' ;
3+ import { createSauceLabsLauncher } from '../dist/index.js' ;
34
45if ( ! process . env . SAUCE_USERNAME ) {
56 throw new Error ( 'Missing env var SAUCE_USERNAME' ) ;
@@ -24,9 +25,7 @@ const sauceLabsLauncher = createSauceLabsLauncher(
2425 sauceLabsCapabilities ,
2526) ;
2627
27- describe ( 'test-runner-saucelabs' , function ( ) {
28- this . timeout ( 400000 ) ;
29-
28+ describe ( 'test-runner-saucelabs' , { timeout : 400000 } , ( ) => {
3029 function createConfig ( ) {
3130 return {
3231 browserStartTimeout : 1000 * 60 * 2 ,
Original file line number Diff line number Diff line change 2626 },
2727 "scripts" : {
2828 "build" : " tsc" ,
29- "test" : " mocha test/**/*.test.ts --require ts-node/register --reporter dot " ,
30- "test:watch" : " mocha test/**/*.test.ts --require ts-node/register --watch --watch-files src, test"
29+ "test:node " : " node --experimental-strip-types -- test --test-force-exit \" test /**/*.test.ts\" " ,
30+ "test:watch" : " node --experimental-strip-types --test --test-force-exit --watch \" test/**/*.test.ts \" "
3131 },
3232 "files" : [
3333 " *.d.ts" ,
Original file line number Diff line number Diff line change 1+ import { describe , before , after } from 'node:test' ;
12import selenium from 'selenium-standalone' ;
23import { Builder } from 'selenium-webdriver' ;
3- import { Options as ChromeOptions } from 'selenium-webdriver/chrome' ;
4- import { Options as FirefoxOptions } from 'selenium-webdriver/firefox' ;
5- import { runIntegrationTests } from '../../../integration/test-runner' ;
6- import { seleniumLauncher } from '../src/seleniumLauncher ' ;
4+ import { Options as ChromeOptions } from 'selenium-webdriver/chrome.js ' ;
5+ import { Options as FirefoxOptions } from 'selenium-webdriver/firefox.js ' ;
6+ import { runIntegrationTests } from '../../../integration/test-runner/index.ts ' ;
7+ import { seleniumLauncher } from '../dist/index.js ' ;
78
89async function startSeleniumServer ( ) {
910 let server : selenium . ChildProcess ;
@@ -39,9 +40,7 @@ async function startSeleniumServer() {
3940
4041let seleniumServer : selenium . ChildProcess ;
4142
42- describe ( 'test-runner-selenium' , function testRunnerSelenium ( ) {
43- this . timeout ( 50000 ) ;
44-
43+ describe ( 'test-runner-selenium' , { timeout : 50000 } , ( ) => {
4544 before ( async function ( ) {
4645 seleniumServer = await startSeleniumServer ( ) ;
4746 } ) ;
Original file line number Diff line number Diff line change 2626 },
2727 "scripts" : {
2828 "build" : " tsc" ,
29- "test" : " mocha test/**/*.test.ts --require ts-node/register --reporter dot " ,
30- "test:watch" : " mocha test/**/*.test.ts --require ts-node/register --watch --watch-files src, test"
29+ "test:node " : " node --experimental-strip-types -- test --test-force-exit \" test /**/*.test.ts\" " ,
30+ "test:watch" : " node --experimental-strip-types --test --test-force-exit --watch \" test/**/*.test.ts \" "
3131 },
3232 "files" : [
3333 " *.d.ts" ,
Original file line number Diff line number Diff line change 1+ import { describe , before , after } from 'node:test' ;
12import selenium from 'selenium-standalone' ;
2- import { runIntegrationTests } from '../../../integration/test-runner' ;
3- import { webdriverLauncher } from '../src/webdriverLauncher ' ;
3+ import { runIntegrationTests } from '../../../integration/test-runner/index.ts ' ;
4+ import { webdriverLauncher } from '../dist/index.js ' ;
45
56async function startSeleniumServer ( ) {
67 let server ;
@@ -34,9 +35,7 @@ async function startSeleniumServer() {
3435
3536let seleniumServer : selenium . ChildProcess ;
3637
37- describe ( 'test-runner-webdriver' , function testRunnerWebdriver ( ) {
38- this . timeout ( 50000 ) ;
39-
38+ describe ( 'test-runner-webdriver' , { timeout : 50000 } , ( ) => {
4039 before ( async function ( ) {
4140 seleniumServer = await startSeleniumServer ( ) ;
4241 } ) ;
You can’t perform that action at this time.
0 commit comments