chore: test drop db
This commit is contained in:
@@ -4,7 +4,6 @@ import type { Config, SanitizedConfig } from '../packages/payload/src/config/typ
|
||||
|
||||
import { mongooseAdapter } from '../packages/db-mongodb/src/index.js'
|
||||
import { postgresAdapter } from '../packages/db-postgres/src/index.js'
|
||||
//import { postgresAdapter } from '../packages/db-postgres/src/index.js'
|
||||
import { buildConfig as buildPayloadConfig } from '../packages/payload/src/config/build.js'
|
||||
import {
|
||||
AlignFeature,
|
||||
|
||||
13
test/dev.js
13
test/dev.js
@@ -1,22 +1,21 @@
|
||||
/* eslint-disable @typescript-eslint/no-var-requires */
|
||||
import { existsSync } from 'fs'
|
||||
import { promises } from 'fs'
|
||||
import { existsSync, promises, promises as _promises, promises as __promises } from 'fs'
|
||||
import json5 from 'json5'
|
||||
import minimist from 'minimist'
|
||||
import { nextDev } from 'next/dist/cli/next-dev.js'
|
||||
import { dirname } from 'path'
|
||||
import { resolve } from 'path'
|
||||
import { dirname, resolve } from 'path'
|
||||
import { fileURLToPath } from 'url'
|
||||
|
||||
const { readFile } = promises
|
||||
import { promises as _promises } from 'fs'
|
||||
const { writeFile } = _promises
|
||||
import { promises as __promises } from 'fs'
|
||||
const { rm } = __promises
|
||||
import json5 from 'json5'
|
||||
|
||||
const { parse } = json5
|
||||
|
||||
main()
|
||||
|
||||
process.env.PAYLOAD_DROP_DATABASE = true
|
||||
|
||||
async function main() {
|
||||
const {
|
||||
_: [testSuiteArg],
|
||||
|
||||
Reference in New Issue
Block a user