Skip to content

Commit 9746f80

Browse files
authored
Remove husky from the integration tests package.json (#111)
* Remove prettier and husky from the integration tests package.json * Run `yarn lint` in `integration-tests/js-compute`
1 parent 5bcdde7 commit 9746f80

File tree

7 files changed

+1565
-19
lines changed

7 files changed

+1565
-19
lines changed

integration-tests/js-compute/fixtures/byte-repeater/byte-repeater.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ addEventListener("fetch", (event) => {
1818
event.respondWith(response);
1919

2020
// Make a request upstream
21-
let upstreamRequest = new Request("https://compute-sdk-test-backend.edgecompute.app/byte_repeater");
21+
let upstreamRequest = new Request(
22+
"https://compute-sdk-test-backend.edgecompute.app/byte_repeater"
23+
);
2224
upstreamRequest.setCacheOverride(new CacheOverride("pass"));
2325
fetch(upstreamRequest, {
2426
backend: "TheOrigin",

integration-tests/js-compute/fixtures/env/env.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ addEventListener("fetch", (event) => {
1616
}
1717

1818
// Build a response
19-
console.log(responseBody)
19+
console.log(responseBody);
2020
let response = new Response(responseBody, {
2121
status,
2222
});

integration-tests/js-compute/fixtures/request-limits/request-limits.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,12 @@ addEventListener("fetch", (event) => {
1212

1313
// Loop and add the maximum limit of requests
1414
for (let i = 0; i < numRequestsToMake; i++) {
15-
let request = new Request("https://compute-sdk-test-backend.edgecompute.app/", {
16-
method: "GET"
17-
});
15+
let request = new Request(
16+
"https://compute-sdk-test-backend.edgecompute.app/",
17+
{
18+
method: "GET",
19+
}
20+
);
1821
let pendingRequest = fetch(request, {
1922
backend: "TheOrigin",
2023
});

integration-tests/js-compute/fixtures/request-upstream/request-upstream.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,12 @@ addEventListener("fetch", (event) => {
44
// Make a Request upstream to our origin
55
let headers = new Headers();
66
headers.set("UpstreamHeader", "UpstreamValue");
7-
let upstreamRequest = new Request("https://compute-sdk-test-backend.edgecompute.app/request_upstream", {
8-
headers,
9-
});
7+
let upstreamRequest = new Request(
8+
"https://compute-sdk-test-backend.edgecompute.app/request_upstream",
9+
{
10+
headers,
11+
}
12+
);
1013
let upstreamResponse = fetch(upstreamRequest, {
1114
backend: "TheOrigin",
1215
});

integration-tests/js-compute/fixtures/streaming-close/streaming-close.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ addEventListener("fetch", (event) => {
1919
event.respondWith(response);
2020

2121
// Make a request upstream
22-
let upstreamRequest = new Request("https://compute-sdk-test-backend.edgecompute.app/streaming_close");
22+
let upstreamRequest = new Request(
23+
"https://compute-sdk-test-backend.edgecompute.app/streaming_close"
24+
);
2325
let upstreamCacheOverride = new CacheOverride("pass");
2426
upstreamRequest.setCacheOverride(upstreamCacheOverride);
2527
fetch(upstreamRequest, {
@@ -76,7 +78,7 @@ addEventListener("fetch", (event) => {
7678
teleHeaders.set("Vowels-Removed", vowelsRemoved.toString());
7779
let teleRequest = new Request("https://telemetry-server.com/example", {
7880
method: "POST",
79-
headers: teleHeaders
81+
headers: teleHeaders,
8082
});
8183
await fetch(teleRequest, {
8284
backend: "TelemetryServer",

integration-tests/js-compute/package.json

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,12 @@
11
{
22
"scripts": {
3-
"install:ci": "HUSKY_SKIP_INSTALL=true npm ci",
3+
"install:ci": "npm ci",
44
"build:test": "base=$npm_config_test; webpack \"./fixtures/$base/$base.ts\" --output-path \"./fixtures/$base\" --output-filename \"$base.js\"; js-compute-runtime --skip-pkg \"./fixtures/$base/$base.js\" \"./fixtures/$base/$base.wasm\"",
5-
"lint": "npx prettier --write ./fixtures/*.ts"
6-
},
7-
"husky": {
8-
"hooks": {
9-
"pre-commit": "pretty-quick --staged"
10-
}
5+
"lint": "npx prettier --write ./fixtures/**/*.ts"
116
},
127
"devDependencies": {
13-
"husky": "^4.2.5",
148
"npm-run-all": "^4.1.5",
159
"prettier": "^2.0.5",
16-
"pretty-quick": "^2.0.1",
1710
"ts-loader": "^8.1.0",
1811
"typescript": "^4.3",
1912
"webpack": "^5.30.0",

0 commit comments

Comments
 (0)