feat!: support eslint-remote-tester@v4
, ESM & FlatConfig
#201
Annotations
5 errors and 1 warning
src/peer-dependencies.ts#L66
Error: [vitest] No "error" export is defined on the "@actions/core" mock. Did you forget to return it from "vi.mock"?
If you need to partially mock a module, you can use "importOriginal" helper inside:
vi.mock("@actions/core", async (importOriginal) => {
const actual = await importOriginal()
return {
...actual,
// your mocked methods
}
})
❯ Module.importPeerDependency src/peer-dependencies.ts:66:14
❯ Module.createComment src/comment-templates.ts:39:51
❯ test/comment-templates.test.ts:24:25
|
src/peer-dependencies.ts#L66
Error: [vitest] No "error" export is defined on the "@actions/core" mock. Did you forget to return it from "vi.mock"?
If you need to partially mock a module, you can use "importOriginal" helper inside:
vi.mock("@actions/core", async (importOriginal) => {
const actual = await importOriginal()
return {
...actual,
// your mocked methods
}
})
❯ Module.importPeerDependency src/peer-dependencies.ts:66:14
❯ Module.createComment src/comment-templates.ts:39:51
❯ test/comment-templates.test.ts:75:25
|
src/peer-dependencies.ts#L66
Error: [vitest] No "error" export is defined on the "@actions/core" mock. Did you forget to return it from "vi.mock"?
If you need to partially mock a module, you can use "importOriginal" helper inside:
vi.mock("@actions/core", async (importOriginal) => {
const actual = await importOriginal()
return {
...actual,
// your mocked methods
}
})
❯ Module.importPeerDependency src/peer-dependencies.ts:66:14
❯ Module.createComment src/comment-templates.ts:39:51
❯ test/comment-templates.test.ts:130:25
|
src/peer-dependencies.ts#L66
Error: [vitest] No "error" export is defined on the "@actions/core" mock. Did you forget to return it from "vi.mock"?
If you need to partially mock a module, you can use "importOriginal" helper inside:
vi.mock("@actions/core", async (importOriginal) => {
const actual = await importOriginal()
return {
...actual,
// your mocked methods
}
})
❯ Module.importPeerDependency src/peer-dependencies.ts:66:14
❯ Module.createComment src/comment-templates.ts:39:51
❯ test/comment-templates.test.ts:193:25
|
|
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: pnpm/action-setup@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
This job failed
Loading