test: misc test dir type fixes

This commit is contained in:
Elliot DeNolf
2024-03-21 11:51:22 -04:00
parent a3df2ca0ef
commit c1e1cd0596
8 changed files with 23 additions and 41 deletions

View File

@@ -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'

View File

@@ -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: {