1
0
Fork 0
mirror of synced 2024-07-30 10:36:28 +12:00
budibase/packages/backend-core
Rory Powell fba7ef26ad Replace ts-jest with swc/jest (#9289)
- Add swc dependencies
- Add transform change to jest.config.ts
- Replace `export =` with `export default` in src code to enable code coverage to work with swc transformer
- Restructure backend-core errors package to allow for exporting error classes with ESM syntax
- Update backend-core to no longer use `export =`, export individual packages instead of replacing with `export default` for backwards compatibility
- Update event publishers to use `export default` - this was required for the `jest.spyOn` usage inside backend-core common mocks
- Restructure some jest.mock usages where declaring the jest.fn as a variable outside of the package mock threw an error
2023-01-11 09:37:37 +00:00
..
__mocks__ File authentication using presigned URLs (#8883) 2022-12-15 11:35:22 +00:00
src Replace ts-jest with swc/jest (#9289) 2023-01-11 09:37:37 +00:00
tests Replace ts-jest with swc/jest (#9289) 2023-01-11 09:37:37 +00:00
.gitignore Merge develop 2022-09-28 08:56:45 +01:00
jest.config.ts Replace ts-jest with swc/jest (#9289) 2023-01-11 09:37:37 +00:00
LICENSE Changing directory. 2022-01-10 19:30:35 +00:00
package.json Replace ts-jest with swc/jest (#9289) 2023-01-11 09:37:37 +00:00
plugins.ts Fix for budibase plugin skeleton, which utilises the old import style. 2022-12-12 12:31:32 +00:00
README.md Switching out @budibase/auth to @budibase/backend-core. 2022-01-10 19:33:00 +00:00
tsconfig.build.json Replace ts-jest with swc/jest (#9289) 2023-01-11 09:37:37 +00:00
tsconfig.json Replace ts-jest with swc/jest (#9289) 2023-01-11 09:37:37 +00:00
yarn.lock Replace ts-jest with swc/jest (#9289) 2023-01-11 09:37:37 +00:00

Budibase Core backend library

This library contains core functionality, like auth and security features which are shared between backend services.

Note about top level JS files

For the purposes of being able to do say require("@budibase/backend-core/permissions") we need to specify the exports at the top-level of the module.

For these files they should be limited to a single require of the file that should be exported and then a single module.exports = ... to export the file in commonJS.