Skip to content

Commit

Permalink
test: fix pkg.test.js cd()
Browse files Browse the repository at this point in the history
  • Loading branch information
antongolub committed Apr 2, 2024
1 parent aca34f1 commit 23e4de7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/package.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,12 @@
// limitations under the License.

import assert from 'node:assert'
import { test, describe, beforeEach } from 'node:test'
import { test, describe, beforeEach, before, after } from 'node:test'
import '../build/globals.js'

describe('package', () => {
before(() => $.cwdHook = true)
after(() => $.cwdHook = false)
beforeEach(async () => {
const pack = await $`npm pack`
await $`tar xf ${pack}`
Expand Down

0 comments on commit 23e4de7

Please sign in to comment.