@@ -2,7 +2,11 @@ const { test, before, beforeEach } = require('tap');
2
2
const { $ } = require ( 'zx' ) ;
3
3
const fs = require ( 'fs' ) ;
4
4
const path = require ( 'path' ) ;
5
- const { generateTmpReportPath, getTestTags } = require ( '../../helpers' ) ;
5
+ const {
6
+ generateTmpReportPath,
7
+ getTestTags,
8
+ toCorrectPath
9
+ } = require ( '../../helpers' ) ;
6
10
const {
7
11
checkForNegativeValues,
8
12
checkAggregateCounterSums
@@ -21,11 +25,15 @@ beforeEach(async (t) => {
21
25
reportFilePath = generateTmpReportPath ( t . name , 'json' ) ;
22
26
} ) ;
23
27
24
- test ( 'Run with typescript processor and external package' , async ( t ) => {
25
- const scenarioPath = `${ __dirname } /fixtures/ts-external-pkg/with-external-foreign-pkg.yml` ;
28
+ test ( 'Run with typescript processor and external package @windows' , async ( t ) => {
29
+ const scenarioPath = toCorrectPath (
30
+ `${ __dirname } /fixtures/ts-external-pkg/with-external-foreign-pkg.yml`
31
+ ) ;
26
32
27
33
const output =
28
- await $ `${ A9_PATH } run-fargate ${ scenarioPath } --output ${ reportFilePath } --record --tags ${ baseTags } ,typescript:true` ;
34
+ await $ `${ A9_PATH } run-fargate ${ scenarioPath } --output ${ toCorrectPath (
35
+ reportFilePath
36
+ ) } --record --tags ${ baseTags } ,typescript:true`;
29
37
30
38
t . equal ( output . exitCode , 0 , 'CLI Exit Code should be 0' ) ;
31
39
@@ -45,14 +53,16 @@ test('Run with typescript processor and external package', async (t) => {
45
53
checkAggregateCounterSums ( t , report ) ;
46
54
} ) ;
47
55
48
- test ( 'Run a test with an ESM processor' , async ( t ) => {
56
+ test ( 'Run a test with an ESM processor @windows ' , async ( t ) => {
49
57
// The main thing we're checking here is that ESM + dependencies get bundled correctly by BOM
50
- const scenarioPath = path . resolve (
51
- `${ __dirname } /../../scripts/scenario-async-esm-hooks/test.yml`
58
+ const scenarioPath = toCorrectPath (
59
+ path . resolve ( `${ __dirname } /../../scripts/scenario-async-esm-hooks/test.yml` )
52
60
) ;
53
61
54
62
const output =
55
- await $ `${ A9_PATH } run-fargate ${ scenarioPath } --output ${ reportFilePath } --record --tags ${ baseTags } ` ;
63
+ await $ `${ A9_PATH } run-fargate ${ scenarioPath } --output ${ toCorrectPath (
64
+ reportFilePath
65
+ ) } --record --tags ${ baseTags } `;
56
66
57
67
t . equal ( output . exitCode , 0 , 'CLI exit code should be 0' ) ;
58
68
0 commit comments