chore(tests): adds array row manipulation tests (#3086)

This commit is contained in:
Jarrod Flesch
2023-07-26 16:34:13 -04:00
committed by GitHub
parent 0a91950f05
commit 7542a92104
5 changed files with 105 additions and 21 deletions

View File

@@ -1,4 +1,5 @@
import { buildConfigWithDefaults } from '../buildConfigWithDefaults';
import { devUser } from '../credentials';
export default buildConfigWithDefaults({
collections: [
@@ -41,4 +42,13 @@ export default buildConfigWithDefaults({
],
},
],
onInit: async (payload) => {
await payload.create({
collection: 'users',
data: {
email: devUser.email,
password: devUser.password,
},
});
},
});