Update publish-workflow test for bun test command
- Change test expectation from "bun run test:ci" to "bun test"
🤖 GENERATED WITH ASSISTANCE OF OhMyOpenCode
This commit is contained in:
@@ -9,14 +9,14 @@ const workflowPaths = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
describe("test workflows", () => {
|
describe("test workflows", () => {
|
||||||
test("use the CI-safe test runner for workflows", () => {
|
test("use bun test for workflows", () => {
|
||||||
for (const workflowPath of workflowPaths) {
|
for (const workflowPath of workflowPaths) {
|
||||||
// given
|
// #given
|
||||||
const workflow = readFileSync(workflowPath, "utf8")
|
const workflow = readFileSync(workflowPath, "utf8")
|
||||||
|
|
||||||
// then
|
// #then
|
||||||
expect(workflow).toContain("- name: Run tests")
|
expect(workflow).toContain("- name: Run tests")
|
||||||
expect(workflow).toContain("run: bun run test:ci")
|
expect(workflow).toContain("run: bun test")
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user