Skip to content

Commit 083594e

Browse files
committed
try running directly
1 parent 79314fe commit 083594e

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

.github/workflows/build.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -1205,8 +1205,10 @@ jobs:
12051205
- name: Run E2E test
12061206
working-directory: dev-packages/e2e-tests/test-applications/${{ matrix.test-application }}
12071207
timeout-minutes: 10
1208-
run:
1208+
run: |
12091209
xvfb-run --auto-servernum --server-args="-screen 0 1280x960x24" -- yarn test:assert
1210+
npm pkg set type=module
1211+
node index.mjs
12101212
12111213
job_required_jobs_passed:
12121214
name: All required jobs passed or were skipped

dev-packages/e2e-tests/test-applications/node-profiling/index.mjs

+2
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,5 @@ Sentry.startSpan({ name: 'Precompile test' }, async () => {
2929
});
3030

3131
assertUnpatechedRequire();
32+
33+
console.log('✅ Require is not patched');

dev-packages/e2e-tests/test-applications/node-profiling/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
"scripts": {
66
"typecheck": "tsc --noEmit",
77
"build": "node build.mjs && node build.shimmed.mjs",
8-
"test": "node dist/index.js && node --experimental-require-module dist/index.js && node dist/index.shimmed.mjs && pnpm run test:mjs",
8+
"test": "node dist/index.js && node --experimental-require-module dist/index.js && node dist/index.shimmed.mjs",
99
"clean": "npx rimraf node_modules dist",
1010
"test:electron": "$(pnpm bin)/electron-rebuild && playwright test",
1111
"test:build": "pnpm run typecheck && pnpm run build",
1212
"test:assert": "pnpm run test && pnpm run test:electron",
13-
"test:mjs": "node --version && npm pkg set type=module && node index.mjs"
13+
"test:mjs": "node index.mjs"
1414
},
1515
"dependencies": {
1616
"@electron/rebuild": "^3.7.0",

0 commit comments

Comments
 (0)