Skip to content

Commit c3a8251

Browse files
committed
chore: fix broken tests
1 parent 137c84b commit c3a8251

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

packages/mocha/plugins/scripts.cjs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ const makeScripts = ({
3434
await execa('nyc', ['tc', `test${suffix}`, ...args], {
3535
env: {
3636
...env,
37-
JCOREIO_TOOLCHAIN_TEST: '1',
3837
JCOREIO_TOOLCHAIN_COVERAGE: '1',
3938
},
4039
})
@@ -53,7 +52,6 @@ const makeScripts = ({
5352
await execa('nyc', ['tc', name, ...args], {
5453
env: {
5554
...env,
56-
JCOREIO_TOOLCHAIN_TEST: '1',
5755
JCOREIO_TOOLCHAIN_COVERAGE: '1',
5856
},
5957
})
@@ -116,7 +114,11 @@ module.exports = [
116114
makeScripts({
117115
env:
118116
toolchainConfig.outputCjs === false ?
119-
{ ...process.env, JCOREIO_TOOLCHAIN_ESM: '1' }
117+
{
118+
...process.env,
119+
JCOREIO_TOOLCHAIN_TEST: '1',
120+
JCOREIO_TOOLCHAIN_ESM: '1',
121+
}
120122
: undefined,
121123
}),
122124
]
@@ -133,6 +135,7 @@ if (
133135
descriptionSuffix: ' in CJS mode',
134136
env: {
135137
...process.env,
138+
JCOREIO_TOOLCHAIN_TEST: '1',
136139
JCOREIO_TOOLCHAIN_CJS: '1',
137140
},
138141
}),
@@ -141,6 +144,7 @@ if (
141144
descriptionSuffix: ' in ESM mode',
142145
env: {
143146
...process.env,
147+
JCOREIO_TOOLCHAIN_TEST: '1',
144148
JCOREIO_TOOLCHAIN_ESM: '1',
145149
},
146150
}),

0 commit comments

Comments
 (0)