Skip to content

Commit

Permalink
Fix check
Browse files Browse the repository at this point in the history
  • Loading branch information
penalosa committed Nov 20, 2024
1 parent 5f07397 commit ba2b58e
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ const existsMock = (fileList: Set<string>) => {
if (fileList.has(pathname)) {
return pathname;
}
return null;
}
);
};
Expand All @@ -33,7 +34,7 @@ const testSuites = [
},
];

describe.each(testSuites)("$title", ({ title, suite }) => {
describe.each(testSuites)("$title", ({ suite }) => {
beforeEach(() => {
vi.mocked(getAssetWithMetadataFromKV).mockImplementation(
() =>
Expand Down Expand Up @@ -64,7 +65,7 @@ describe.each(testSuites)("$title", ({ title, suite }) => {
async ({ files, requestPath, matchedFile, finalPath }) => {
existsMock(new Set(files));
const request = new IncomingRequest(BASE_URL + requestPath);
let response = await SELF.fetch(request);
const response = await SELF.fetch(request);
if (matchedFile && finalPath) {
expect(getAssetWithMetadataFromKV).toBeCalledTimes(1);
expect(getAssetWithMetadataFromKV).toBeCalledWith(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { TestCase } from "./test-case";
import type { TestCase } from "./test-case";

export const encodingTestCases: {
html_handling:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { TestCase } from "./test-case";
import type { TestCase } from "./test-case";

export const htmlHandlingTestCases: {
html_handling:
Expand Down
2 changes: 1 addition & 1 deletion packages/workers-shared/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"check:type": "pnpm run check:type:package && pnpm run check:type:asset-worker && pnpm run check:type:router-worker",
"check:type:asset-worker": "tsc -p ./asset-worker/tsconfig.json && tsc -p ./asset-worker/tests/tsconfig.json",
"check:type:package": "tsc -p ./tsconfig.json && tsc -p ./tsconfig.node.json",
"check:type:router-worker": "tsc -p ./router-worker/tsconfig.json && tsc -p ./router-worker/tests/tsconfig.json",
"check:type:router-worker": "tsc -p ./router-worker/tsconfig.json",
"clean": "rimraf dist",
"deploy": "pnpm run deploy:router-worker && pnpm run deploy:asset-worker",
"deploy:asset-worker": "CLOUDFLARE_API_TOKEN=$WORKERS_DEPLOY_AND_CONFIG_CLOUDFLARE_API_TOKEN pnpx wrangler versions upload --experimental-versions -c asset-worker/wrangler.toml",
Expand Down
2 changes: 1 addition & 1 deletion packages/workers-shared/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
"strict": true,
"skipLibCheck": true
},
"include": ["utils/*.ts"],
"include": ["utils/*.ts", "index.ts"],
"exclude": ["scripts/**"]
}

0 comments on commit ba2b58e

Please sign in to comment.