Skip to content

Commit 597183f

Browse files
committed
Add .js extension to eip integration test import
Node 20 ESM resolution requires explicit file extensions; the bare '../../src/index' import fails with ERR_MODULE_NOT_FOUND. The modbus integration client already uses '.js' — match it here.
1 parent 952b41d commit 597183f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/integration/eip.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import assert from 'assert';
2-
import { TCP, CIP } from '../../src/index';
2+
import { TCP, CIP } from '../../src/index.js';
33

44
const tcpLayer = new TCP({ host: '127.0.0.1', port: 44818 });
55
const eipLayer = new CIP.EIP(tcpLayer);

0 commit comments

Comments
 (0)