Skip to content

Commit

Permalink
Merge pull request #1803 from skaut/dependabot/npm_and_yarn/typescrip…
Browse files Browse the repository at this point in the history
…t-eslint-8.12.2

Bump typescript-eslint from 8.8.1 to 8.12.2
  • Loading branch information
github-actions[bot] authored Nov 5, 2024
2 parents e69181e + 904d045 commit fd2f6ed
Show file tree
Hide file tree
Showing 5 changed files with 62 additions and 186 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ test("insert works", () => {

expect(insert.mock.calls).toHaveLength(1);
expect(insert.mock.calls[0][0]).toBe(file);
expect(insert.mock.calls[0][1]).toBe(undefined);
expect(insert.mock.calls[0][1]).toBeUndefined();
expect(insert.mock.calls[0][2]).toStrictEqual({});
});

Expand Down Expand Up @@ -278,7 +278,7 @@ test("insert works with optional arguments", () => {

expect(insert.mock.calls).toHaveLength(1);
expect(insert.mock.calls[0][0]).toBe(file);
expect(insert.mock.calls[0][1]).toBe(undefined);
expect(insert.mock.calls[0][1]).toBeUndefined();
expect(insert.mock.calls[0][2]).toStrictEqual({ supportsAllDrives: true });
});

Expand All @@ -304,7 +304,7 @@ test("insert works with selective fields", () => {

expect(insert.mock.calls).toHaveLength(1);
expect(insert.mock.calls[0][0]).toBe(file);
expect(insert.mock.calls[0][1]).toBe(undefined);
expect(insert.mock.calls[0][1]).toBeUndefined();
expect(insert.mock.calls[0][2]).toStrictEqual({
fields: "title, userPermission(role)",
});
Expand All @@ -330,7 +330,7 @@ test("insert throws an error on invalid file", () => {

expect(insert.mock.calls).toHaveLength(1);
expect(insert.mock.calls[0][0]).toBe(file);
expect(insert.mock.calls[0][1]).toBe(undefined);
expect(insert.mock.calls[0][1]).toBeUndefined();
expect(insert.mock.calls[0][2]).toStrictEqual({});
});

Expand Down
1 change: 1 addition & 0 deletions __tests__/test-utils/stub-endpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ export async function setup(
stubbedEndpoints[key] = (
...args: Array<google.script.Parameter>
): void => {
// eslint-disable-next-line playwright/no-unsafe-references -- Exposed function
_logEndpointCall(key, args);
const stub = window._endpointStubs[key].shift();
if (stub === undefined) {
Expand Down
9 changes: 6 additions & 3 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ export default tseslint.config(
plugins: {
"eslint-comments": eslintComments,
jest,
playwright,
"prefer-arrow-functions": preferArrowFunctions,
},
rules: {
Expand Down Expand Up @@ -248,9 +247,12 @@ export default tseslint.config(
},
},
{
extends: [jest.recommended, jest.style],
...jest.configs["flat/recommended"],
...jest.configs["flat/style"],
files: ["__tests__/**/*.test.ts", "__tests__/test-utils/gas-stubs.ts"],
rules: {
...jest.configs["flat/recommended"].rules,
...jest.configs["flat/style"].rules,
"jest/consistent-test-it": ["error", { withinDescribe: "test" }],
"jest/no-conditional-in-test": "error",
"jest/no-confusing-set-timeout": "error",
Expand Down Expand Up @@ -283,12 +285,13 @@ export default tseslint.config(
},
},
{
extends: [playwright.recommended],
...playwright.configs["flat/recommended"],
files: [
"__tests__/frontend/*.ts",
"__tests__/test-utils/stub-endpoints.ts",
],
rules: {
...playwright.configs["flat/recommended"].rules,
"playwright/no-commented-out-tests": "error",
"playwright/no-duplicate-hooks": "error",
"playwright/no-get-by-title": "error",
Expand Down
Loading

0 comments on commit fd2f6ed

Please sign in to comment.