Skip to content

Commit ca04a30

Browse files
committed
fix(sea): F3b e2e — switch fs/path to named imports under ESM reparse
Same ESM-reparse fix as F2/F4. Verified live e2e passes (submit → awaitResult → drain, status() variant, cancel-while-pending). Co-authored-by: Isaac Signed-off-by: Madhavendra Rathore <madhavendra.rathore@databricks.com>
1 parent 902f22a commit ca04a30

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

tests/e2e/sea/async-execute-e2e.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@
4040

4141
import { expect } from 'chai';
4242
import { tableFromIPC } from 'apache-arrow';
43-
import * as fs from 'fs';
44-
import * as path from 'path';
43+
import { existsSync } from 'fs';
44+
import { resolve as resolvePath } from 'path';
4545
import { createRequire } from 'module';
4646

4747
// `createRequire(import.meta.url)` so the require works under both
@@ -97,11 +97,11 @@ describe('SEA async execute — submit / status / awaitResult / cancel', functio
9797
// loadBinding(). Skip-with-message if absent. DA round-1 H1 fixup
9898
// (skip-gate must not crash MODULE_NOT_FOUND when build:native not
9999
// run).
100-
const nodeArtifact = path.resolve(
100+
const nodeArtifact = resolvePath(
101101
process.cwd(),
102102
'native/sea/index.linux-x64-gnu.node',
103103
);
104-
if (!fs.existsSync(nodeArtifact)) {
104+
if (!existsSync(nodeArtifact)) {
105105
// eslint-disable-next-line no-console
106106
console.warn(
107107
`[sea async-execute e2e] skipping: native binary not built. ` +

0 commit comments

Comments
 (0)