chore: run lint and prettier on entire codebase
This commit is contained in:
@@ -409,8 +409,8 @@ describe('relationship', () => {
|
||||
|
||||
const textDocsGroup = page.locator('.rs__group-heading:has-text("Text Fields")')
|
||||
const firstTextDocOption = textDocsGroup.locator('+div .rs__option').first()
|
||||
const firstOptionLabel = await firstTextDocOption.textContent()
|
||||
expect(firstOptionLabel).toBe('Seeded text document')
|
||||
const firstOptionLabel = firstTextDocOption
|
||||
await expect(firstOptionLabel).toHaveText('Seeded text document')
|
||||
})
|
||||
|
||||
test('should allow filtering by relationship field / equals', async () => {
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/* eslint-disable no-param-reassign */
|
||||
import type { CollectionConfig } from 'payload'
|
||||
|
||||
import { tabsFieldsSlug } from '../../slugs.js'
|
||||
|
||||
@@ -1,11 +1,12 @@
|
||||
import { rootEslintConfig, rootParserOptions } from '../../eslint.config.js'
|
||||
import { rootParserOptions } from '../../eslint.config.js'
|
||||
import testEslintConfig from '../eslint.config.js'
|
||||
|
||||
/** @typedef {import('eslint').Linter.FlatConfig} */
|
||||
let FlatConfig
|
||||
|
||||
/** @type {FlatConfig[]} */
|
||||
export const index = [
|
||||
...rootEslintConfig,
|
||||
...testEslintConfig,
|
||||
{
|
||||
languageOptions: {
|
||||
parserOptions: {
|
||||
|
||||
@@ -111,7 +111,6 @@ describe('Fields', () => {
|
||||
locale: 'all',
|
||||
})
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||
// @ts-expect-error
|
||||
expect(localizedDoc.localizedHasMany.en).toEqual(localizedHasMany)
|
||||
})
|
||||
@@ -476,7 +475,6 @@ describe('Fields', () => {
|
||||
locale: 'all',
|
||||
})
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||
// @ts-expect-error
|
||||
expect(localizedDoc.localizedHasMany.en).toEqual(localizedHasMany)
|
||||
})
|
||||
@@ -527,7 +525,7 @@ describe('Fields', () => {
|
||||
indexes.forEach((index) => {
|
||||
const field = Object.keys(index[0])[0]
|
||||
definitions[field] = index[0][field]
|
||||
// eslint-disable-next-line prefer-destructuring
|
||||
|
||||
options[field] = index[1]
|
||||
})
|
||||
})
|
||||
@@ -585,7 +583,7 @@ describe('Fields', () => {
|
||||
indexes.forEach((index) => {
|
||||
const field = Object.keys(index[0])[0]
|
||||
definitions[field] = index[0][field]
|
||||
// eslint-disable-next-line prefer-destructuring
|
||||
|
||||
options[field] = index[1]
|
||||
})
|
||||
})
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user