run local build script
This commit is contained in:
@@ -1,9 +1,13 @@
|
|||||||
import { spawnSync } from "node:child_process"
|
import { spawnSync } from "node:child_process"
|
||||||
import { createRequire } from "node:module"
|
import { createRequire } from "node:module"
|
||||||
|
import { join } from "node:path"
|
||||||
|
import { fileURLToPath } from "node:url"
|
||||||
import { beforeAll, expect, test } from "vitest"
|
import { beforeAll, expect, test } from "vitest"
|
||||||
|
|
||||||
beforeAll(() => {
|
beforeAll(() => {
|
||||||
spawnSync("pnpm", ["run", "build"])
|
spawnSync("pnpm", ["run", "build"], {
|
||||||
|
cwd: join(fileURLToPath(import.meta.url), ".."),
|
||||||
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
test("can require commonjs", () => {
|
test("can require commonjs", () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user