diff --git a/knip.ts b/.github/knip.ts similarity index 90% rename from knip.ts rename to .github/knip.ts index 57b5e39..a749511 100644 --- a/knip.ts +++ b/.github/knip.ts @@ -8,4 +8,4 @@ const config: KnipConfig = { ignoreDependencies: [], }; -export default config; \ No newline at end of file +export default config; diff --git a/.github/workflows/jest-testing.yml b/.github/workflows/jest-testing.yml index b8a785d..1671cd4 100644 --- a/.github/workflows/jest-testing.yml +++ b/.github/workflows/jest-testing.yml @@ -1,7 +1,7 @@ name: Run Jest testing suite on: workflow_dispatch: - pull_request: + pull_request_target: types: [ opened, synchronize ] env: diff --git a/.github/workflows/knip.yml b/.github/workflows/knip.yml index b686ba2..50a1a2a 100644 --- a/.github/workflows/knip.yml +++ b/.github/workflows/knip.yml @@ -1,7 +1,7 @@ name: Knip on: - pull_request: + pull_request_target: workflow_dispatch: permissions: write-all diff --git a/package.json b/package.json index 72e158a..5e66a96 100644 --- a/package.json +++ b/package.json @@ -15,8 +15,8 @@ "format:lint": "eslint --fix .", "format:prettier": "prettier --write .", "format:cspell": "cspell **/*", - "knip": "knip", - "knip-ci": "knip --no-exit-code --reporter json", + "knip": "knip --config .github/knip.ts", + "knip-ci": "knip --no-exit-code --reporter json --config .github/knip.ts", "prepare": "husky install", "test": "jest --setupFiles dotenv/config --coverage", "cy:open": "cypress open", diff --git a/tests/__mocks__/db.ts b/tests/__mocks__/db.ts index 50394c1..7df690c 100644 --- a/tests/__mocks__/db.ts +++ b/tests/__mocks__/db.ts @@ -1,3 +1,4 @@ +// cSpell:disable import { factory, primaryKey } from "@mswjs/data"; /**