File tree Expand file tree Collapse file tree 4 files changed +19
-247
lines changed Expand file tree Collapse file tree 4 files changed +19
-247
lines changed Original file line number Diff line number Diff line change @@ -7,62 +7,6 @@ concurrency:
7
7
cancel-in-progress : true
8
8
9
9
jobs :
10
- prepare-versions :
11
- runs-on : ubuntu-latest
12
- outputs :
13
- matrix : ${{ steps.set-matrix.outputs.matrix }}
14
- steps :
15
- - name : Checkout
16
- uses : actions/checkout@v4
17
- - id : set-matrix
18
- name : Prepare
19
- run : echo "matrix=$(node -p "JSON.stringify(require('./package.json').peerDependencies['cypress'].split(' || '))")" >> $GITHUB_OUTPUT
20
- - run : npm -v
21
-
22
- test :
23
- needs : prepare-versions
24
- runs-on : ubuntu-latest
25
- container :
26
- image : cypress/browsers:latest
27
- strategy :
28
- fail-fast : false
29
- matrix :
30
- cypress-version : ${{fromJson(needs.prepare-versions.outputs.matrix)}}
31
- steps :
32
- - uses : actions/setup-node@v4
33
- with :
34
- node-version : 18
35
- - name : Checkout
36
- uses : actions/checkout@v4
37
- - name : Cache NPM modules
38
- uses : actions/cache@v4
39
- with :
40
- path : ~/.npm
41
- key : npm-linux@${{ matrix.cypress-version }}
42
- - name : Cache Cypress binaries
43
- uses : actions/cache@v4
44
- with :
45
- path : ~/.cache/Cypress
46
- key : cypress-linux@${{ matrix.cypress-version }}
47
- - name : Change owner
48
- run : " chown root: ."
49
- - name : Dependencies
50
- env :
51
- CYPRESS_INSTALL_BINARY : " 0"
52
- run : |
53
- npm install --engine-strict && \
54
- npm install --no-save cypress@${{ matrix.cypress-version }} && \
55
- env -u CYPRESS_INSTALL_BINARY npx cypress install
56
- - name : Build
57
- run : npm run build
58
- - name : Test
59
- run : npm run test
60
- - name : Versions
61
- run : |
62
- npx cypress --version
63
- node --version
64
- npm --version
65
-
66
10
windows :
67
11
runs-on : windows-latest
68
12
env :
93
37
- name : Remove Webpack test
94
38
run : rm features/loaders/webpack.feature
95
39
- name : Test
96
- run : npm run test:integration
40
+ with :
41
+ DEBUG : cypress:electron,cypress-configuration,cypress-cucumber-preprocessor
42
+ run : npm run test:integration -- features\reporters\usage.feature:91
97
43
- name : Versions
98
44
run : |
99
45
npx cypress --version
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -8,6 +8,8 @@ import { compile } from "../template";
8
8
9
9
import { assertAndReturn } from "../helpers/assertions" ;
10
10
11
+ import debug from "../helpers/debug" ;
12
+
11
13
export function createEsbuildPlugin (
12
14
configuration : Cypress . PluginConfigOptions ,
13
15
options : { prettySourceMap : boolean } = { prettySourceMap : false } ,
@@ -31,6 +33,18 @@ export function createEsbuildPlugin(
31
33
( await fs . readFile ( sourceMapLocation ) ) . toString ( ) ,
32
34
) ;
33
35
36
+ debug ( "before prettify" , sourceMap . sources . slice ( - 2 ) ) ;
37
+
38
+ debug ( "configuration.projectRoot" , configuration . projectRoot ) ;
39
+ debug ( "outfile" , outfile ) ;
40
+
41
+ for ( const source of sourceMap . sources . slice ( - 2 ) ) {
42
+ debug (
43
+ "normalized" ,
44
+ path . normalize ( path . join ( path . dirname ( outfile ) , source ) ) ,
45
+ ) ;
46
+ }
47
+
34
48
/**
35
49
* In leu of https://github.com/evanw/esbuild/issues/2218.
36
50
*/
@@ -41,6 +55,8 @@ export function createEsbuildPlugin(
41
55
) ;
42
56
} ) ;
43
57
58
+ debug ( "after prettify" , sourceMap . sources . slice ( - 2 ) ) ;
59
+
44
60
await fs . rm ( sourceMapLocation ) ;
45
61
46
62
const encoded = Buffer . from ( JSON . stringify ( sourceMap ) ) . toString (
You can’t perform that action at this time.
0 commit comments