Commit Graph

23 Commits

Author SHA1 Message Date
Sam Rose 415b27a008
Don't need a globalTeardown, testcontainers handles the removal of containers. 2024-03-26 10:00:34 +00:00
Sam Rose 5d7cd511b5
Correct path to global functions in jest.config.ts. 2024-03-26 09:51:10 +00:00
Sam Rose db21542d38
Cherry-pick 6b8422df01 2024-03-25 15:25:30 +00:00
Adria Navarro 08a86bdd77 Fix tests 2024-03-15 13:40:14 +01:00
Adria Navarro d332c30b58 Remove ts-jest 2023-07-28 17:11:48 +02:00
Adria Navarro acfe69a3d5 Remove the doble deep format references 2023-06-19 18:34:51 +01:00
Adria Navarro e47aef13d5 Fix jest refs 2023-05-19 10:36:23 +02:00
adrinr afc5c99c6f Revert "Merge pull request #10367 from Budibase/revert-10267-chore/pro_as_submodule"
This reverts commit df18119b56, reversing
changes made to 676b85dbd8.
2023-04-20 19:48:29 +01:00
adrinr e65225996e Revert https://github.com/Budibase/budibase/pull/10267 2023-04-20 19:04:20 +01:00
adrinr 7bd4c39929 Fix jest when no pro access 2023-04-14 17:18:15 +01:00
adrinr 859b10c4be Change references on jest 2023-04-11 16:51:50 +01:00
mike12345567 e2ee573747 Trying to measure coverage from backend-core from server/worker. 2023-02-27 17:07:52 +00:00
Rory Powell 940de8b6a0 Run CI steps in parallel (#9760)
* Parallel CI

* Add build to integration test

* Add checkout to top of each run

* Revert branch update for ci job

* Experiment with --runInBand for CI

* Fix intermittent backend-core migration test failure

* Fix hanging worker redis connection

* Update naming from reset to newTenant
2023-02-21 17:13:24 +00:00
adrinr 651c367f75 Fix worker tests 2023-01-27 17:59:14 +00:00
adrinr ecbf9250a4 Add module name mapper back 2023-01-27 12:36:52 +00:00
Adria Navarro bdacb34c7a Remove config.moduleNameMapper 2023-01-23 18:04:25 +00:00
mike12345567 75df57c3d1 Merge branch 'develop' of github.com:Budibase/budibase into feature/test-image 2023-01-11 10:31:57 +00:00
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
mike12345567 2c2f08339c Adding library to configure test containers at Jest startup. 2022-12-15 21:06:30 +00:00
Peter Clement 9d841bc947 Server and Worker tests (#8928)
* automation unit tests

* row processor tests

* update executeQuery test

* update groups assertion

* some more worker tests

* plugin tests and tidying up

* linting

* temporarily disable group tests

* more tests

* fix import

* fix backup tests

* add pro mocks to worker

* check for app existence in import test

* test new tsconfig

* testing changes

* Pro test utils (#9020)

* Pro test utils changes

* Add test fixes

* Remove ts-ignore

Co-authored-by: mike12345567 <me@michaeldrury.co.uk>
Co-authored-by: Rory Powell <rory.codes@gmail.com>
2022-12-12 22:02:32 +00:00
mike12345567 e7e2d91fef Merge branch 'develop' of github.com:Budibase/budibase into feature/replace-pouch 2022-11-15 16:45:25 +00:00
Rory Powell 9973f2e161 Bump jest and ts-jest to be consistent across backend packages to fix CI issue, test config updates 2022-11-14 22:55:47 +00:00
Rory Powell 5da699e27c Fail pro scripts on error, unify TS versions, update test and coverage configs, use pro source mappings 2022-11-14 13:29:46 +00:00