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.
33 lines
697 B
JavaScript
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
|