Skip to content

Commit 23e4de7

Browse files
committed
test: fix pkg.test.js cd()
1 parent aca34f1 commit 23e4de7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/package.test.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,12 @@
1313
// limitations under the License.
1414

1515
import assert from 'node:assert'
16-
import { test, describe, beforeEach } from 'node:test'
16+
import { test, describe, beforeEach, before, after } from 'node:test'
1717
import '../build/globals.js'
1818

1919
describe('package', () => {
20+
before(() => $.cwdHook = true)
21+
after(() => $.cwdHook = false)
2022
beforeEach(async () => {
2123
const pack = await $`npm pack`
2224
await $`tar xf ${pack}`

0 commit comments

Comments
 (0)