We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4aec07d commit 0f3f818Copy full SHA for 0f3f818
esbuild-node-externals/test/unit/index.test.mjs
@@ -19,12 +19,13 @@ describe('nodeExternalsPlugin', () => {
19
}
20
await build(config)
21
const result1 = await fs.readFile(path.resolve(__dirname, '../temp/index.js'), 'utf8')
22
- assert.ok(result1.includes('node_modules/tslib/tslib.es6.mjs'), true)
+ assert.equal(result1.includes('node_modules/tslib/tslib.es6.mjs'), true)
23
24
await build({
25
...config,
26
plugins: [plugin]
27
})
28
- assert.ok(result1.includes('node_modules/tslib/tslib.es6.mjs'), false)
+ const result2 = await fs.readFile(path.resolve(__dirname, '../temp/index.js'), 'utf8')
29
+ assert.equal(result2.includes('node_modules/tslib/tslib.es6.mjs'), false)
30
31
0 commit comments