test: misc test dir type fixes
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import type { SanitizedConfig } from 'payload/config'
|
||||
|
||||
import { APIError } from '../../packages/payload/src/errors/index.js'
|
||||
import { APIError } from 'payload/errors'
|
||||
|
||||
import { buildConfigWithDefaults } from '../buildConfigWithDefaults.js'
|
||||
import AfterOperation from './collections/AfterOperation/index.js'
|
||||
import ChainingHooks from './collections/ChainingHooks/index.js'
|
||||
|
||||
@@ -116,7 +116,7 @@ describe('Hooks', () => {
|
||||
})
|
||||
|
||||
it('should save data generated with afterRead hooks in nested field structures', async () => {
|
||||
const document: NestedAfterReadHook = await payload.create({
|
||||
const document = await payload.create({
|
||||
collection: nestedAfterReadHooksSlug,
|
||||
data: {
|
||||
group: {
|
||||
|
||||
Reference in New Issue
Block a user