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