Skip to content

Commit

Permalink
test: temporarily recreate rest.js
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfy1339 committed Apr 30, 2024
1 parent 802ff67 commit a9345d5
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 163 deletions.
178 changes: 17 additions & 161 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@
},
"devDependencies": {
"@octokit/core": "^6.0.1",
"@octokit/rest": "^20.0.0",
"@octokit/plugin-paginate-rest": "^11.3.0",
"@octokit/plugin-request-log": "^5.1.1",
"@octokit/plugin-rest-endpoint-methods": "^13.2.1",
"@octokit/tsconfig": "^3.0.0",
"@types/fetch-mock": "^7.3.1",
"@types/jest": "^29.0.0",
Expand Down
12 changes: 11 additions & 1 deletion test/octokit-rest.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
import { Octokit } from "@octokit/rest";
import { Octokit as OctokitCore } from "@octokit/core";
import { requestLog } from "@octokit/plugin-request-log";
import { legacyRestEndpointMethods } from "@octokit/plugin-rest-endpoint-methods";
import { paginateRest } from "@octokit/plugin-paginate-rest";

import { enterpriseCompatibility } from "../src/index.js";

const Octokit = OctokitCore.plugin(
requestLog,
legacyRestEndpointMethods,
paginateRest,
).defaults({
userAgent: `octokit-rest.js`,
});
const MyOctokit = Octokit.plugin(enterpriseCompatibility);

describe("side effects", () => {
Expand Down

0 comments on commit a9345d5

Please sign in to comment.