test: fix imports
This commit is contained in:
@@ -46,6 +46,7 @@
|
||||
"copyfiles": "2.4.1",
|
||||
"cross-env": "7.0.3",
|
||||
"express": "4.18.2",
|
||||
"form-data": "3.0.1",
|
||||
"get-port": "5.1.1",
|
||||
"jest": "29.6.4",
|
||||
"jest-environment-jsdom": "29.6.4",
|
||||
|
||||
3
pnpm-lock.yaml
generated
3
pnpm-lock.yaml
generated
@@ -47,6 +47,9 @@ importers:
|
||||
express:
|
||||
specifier: 4.18.2
|
||||
version: 4.18.2
|
||||
form-data:
|
||||
specifier: 3.0.1
|
||||
version: 3.0.1
|
||||
get-port:
|
||||
specifier: 5.1.1
|
||||
version: 5.1.1
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import { randomBytes } from 'crypto'
|
||||
import mongoose from 'mongoose'
|
||||
import { randomBytes } from 'crypto';
|
||||
|
||||
import type {
|
||||
ChainedRelation,
|
||||
@@ -8,12 +7,12 @@ import type {
|
||||
Director,
|
||||
Post,
|
||||
Relation,
|
||||
} from './payload-types'
|
||||
} from './payload-types';
|
||||
|
||||
import payload from '../../packages/payload/src'
|
||||
import { mapAsync } from '../../packages/payload/src/utilities/mapAsync'
|
||||
import { initPayloadTest } from '../helpers/configHelpers'
|
||||
import { RESTClient } from '../helpers/rest'
|
||||
import payload from '../../packages/payload/src';
|
||||
import { mapAsync } from '../../packages/payload/src/utilities/mapAsync';
|
||||
import { initPayloadTest } from '../helpers/configHelpers';
|
||||
import { RESTClient } from '../helpers/rest';
|
||||
import config, {
|
||||
chainedRelSlug,
|
||||
customIdNumberSlug,
|
||||
@@ -21,7 +20,7 @@ import config, {
|
||||
defaultAccessRelSlug,
|
||||
relationSlug,
|
||||
slug,
|
||||
} from './config'
|
||||
} from './config';
|
||||
|
||||
let client: RESTClient
|
||||
|
||||
|
||||
@@ -1,13 +1,14 @@
|
||||
import FormData from 'form-data'
|
||||
import fs from 'fs'
|
||||
import path from 'path'
|
||||
import { promisify } from 'util'
|
||||
import FormData from 'form-data';
|
||||
import fs from 'fs';
|
||||
import path from 'path';
|
||||
import { promisify } from 'util';
|
||||
|
||||
import payload from '../../packages/payload/src'
|
||||
import getFileByPath from '../../packages/payload/src/uploads/getFileByPath'
|
||||
import { initPayloadTest } from '../helpers/configHelpers'
|
||||
import { RESTClient } from '../helpers/rest'
|
||||
import configPromise, { enlargeSlug, mediaSlug, reduceSlug, relationSlug } from './config'
|
||||
import payload from '../../packages/payload/src';
|
||||
import getFileByPath from '../../packages/payload/src/uploads/getFileByPath';
|
||||
import { initPayloadTest } from '../helpers/configHelpers';
|
||||
import { RESTClient } from '../helpers/rest';
|
||||
import configPromise from './config';
|
||||
import { enlargeSlug, mediaSlug, reduceSlug, relationSlug } from './shared';
|
||||
|
||||
const stat = promisify(fs.stat)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user