Skip to content

Commit

Permalink
Fix linters
Browse files Browse the repository at this point in the history
  • Loading branch information
m1r0 committed Nov 6, 2024
1 parent ab5f7be commit 0256973
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 52 deletions.
58 changes: 13 additions & 45 deletions package-lock.json

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

6 changes: 2 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,7 @@
"@testing-library/jest-dom": "6.6.2",
"@testing-library/react": "16.0.1",
"@testing-library/user-event": "14.5.2",
"@types/jest": "29.5.14",
"@types/node": "22.8.5",
"@types/testing-library__jest-dom": "6.0.0",
"@types/lodash": "4.17.13",
"@wordpress/babel-preset-default": "8.11.0",
"@wordpress/dependency-extraction-webpack-plugin": "3.5.0",
"@wordpress/e2e-test-utils": "wp-5.9",
Expand Down Expand Up @@ -116,7 +114,7 @@
"sass": "1.35.2",
"sass-loader": "12.1.0",
"svg-spritemap-webpack-plugin": "4.4.0",
"typescript": "4.4.4",
"typescript": "4.9.5",
"wp-hookdoc": "0.2.0"
},
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e-playwright/helpers/api/contexts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ type RequestRunner = ( WpApiRequestContext ) => void;
* Run callback over a separated temporary context
* avoiding to mess the test context.
*
* @param callback A callback function to run requests using the admin context
* @param callback A callback function to run requests using the admin context
* @return Promise<void>
*/
export const asAdmin = async ( callback: RequestRunner ): Promise< void > => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
* External dependencies
*/
import { test, expect } from '@playwright/test';

/**
* Internal dependencies
*/
import { createCourse, createCourseCategory } from '@e2e/helpers/api';
import { asAdmin, createCourse, createCourseCategory } from '@e2e/helpers/api';
import PostType from '@e2e/pages/admin/post-type';
import { editorRole } from '@e2e/helpers/context';
import { asAdmin } from '@e2e/helpers/api';
import { faker } from '@faker-js/faker';

const { describe, use, beforeAll } = test;
Expand Down

0 comments on commit 0256973

Please sign in to comment.