chore: get fields test suite to run
This commit is contained in:
@@ -73,18 +73,6 @@ export const collectionSlugs: CollectionConfig[] = [
|
||||
]
|
||||
|
||||
export default buildConfigWithDefaults({
|
||||
admin: {
|
||||
webpack: (config) => ({
|
||||
...config,
|
||||
resolve: {
|
||||
...config.resolve,
|
||||
alias: {
|
||||
...config?.resolve?.alias,
|
||||
fs: path.resolve(__dirname, './mocks/emptyModule.js'),
|
||||
},
|
||||
},
|
||||
}),
|
||||
},
|
||||
collections: collectionSlugs,
|
||||
globals: [TabsWithRichText],
|
||||
localization: {
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
export default {}
|
||||
@@ -50,8 +50,8 @@ export async function clearAndSeedEverything(_payload: Payload) {
|
||||
_payload,
|
||||
collectionSlugs,
|
||||
seedFunction: async (_payload) => {
|
||||
const jpgPath = path.resolve(__dirname, './collections/Upload/payload.jpg')
|
||||
const pngPath = path.resolve(__dirname, './uploads/payload.png')
|
||||
const jpgPath = path.resolve(process.cwd(), './test/fields/collections/Upload/payload.jpg')
|
||||
const pngPath = path.resolve(process.cwd(), './test/fields/uploads/payload.png')
|
||||
|
||||
// Get both files in parallel
|
||||
const [jpgFile, pngFile] = await Promise.all([getFileByPath(jpgPath), getFileByPath(pngPath)])
|
||||
|
||||
Reference in New Issue
Block a user