Files
payload/packages/payload-cloud/jest.config.js
Elliot DeNolf 1b1dc82cfb feat!: rename @payloadcms/plugin-cloud (#8828)
BREAKING CHANGE: Rename `@payloadcms/plugin-cloud` to
`@payloadcms/payload-cloud`. Anyone using the existing plugin will need
to switch to using the new package.

## Why?

Since v3 will be using _fixed versioning_, all versions of `^3` must be
available. Unfortunately, the `@payloadcms/plugin-cloud` version has
already breached that version number. Renaming will allow it to be on
the same version as other monorepo packages.

Additionally, the name `plugin-cloud` is quite ambiguous and sometimes
is confused with `plugin-cloud-storage`, so using `payload-cloud` feels
like a good move to make this more evident.
2024-10-24 21:19:15 -04:00

33 lines
697 B
JavaScript

import baseConfig from '../../jest.config.js'
/** @type {import('jest').Config} */
const customJestConfig = {
...baseConfig,
setupFilesAfterEnv: null,
testMatch: ['**/src/**/?(*.)+(spec|test|it-test).[tj]s?(x)'],
testTimeout: 20000,
transform: {
'^.+\\.(t|j)sx?$': [
'@swc/jest',
{
$schema: 'https://json.schemastore.org/swcrc',
sourceMaps: true,
exclude: ['/**/mocks'],
jsc: {
target: 'esnext',
parser: {
syntax: 'typescript',
tsx: true,
dts: true,
},
},
module: {
type: 'es6',
},
},
],
},
}
export default customJestConfig