1
0
Fork 0
mirror of synced 2024-09-27 06:42:03 +12:00
Commit graph

21 commits

Author SHA1 Message Date
Sam Rose
e530400f46
Fix n8n.spec.ts's reliance on the node-fetch mock. 2024-08-01 11:57:04 +01:00
Sam Rose
4183a0aeb7
Set default packages/server test timeout to 30 seconds, and unmock console.log. 2024-03-27 16:57:31 +00:00
Rory Powell
976b3a55ca Update logging to support dd trace attributes (#10086)
* Update logging middleware to integrate with pino for console logging

* Remove elastic apm references, use updated core middlewares

* Remove redundant LOG_LEVEL definitions

* Remove no longer needed jest logging overrides

* lint

* Backwards compat between console log helpers and pino

* Configurable DISABLE_HTTP_LOGGING

* Don't log 4xx as errors

* Remove redundant ENABLE_4XX_HTTP_LOGGING

* Cleanup migrations and event logging

* Improve bb-alert logging

* Add DISABLE_HTTP_LOGGING to helm chart

* Add ops endpoints for testing

* Disable http logging in dev

* Backwards compatible tracing implementation

* Naming update on http logging env var

* lint

* Update packages/backend-core/src/environment.ts

Co-authored-by: Adria Navarro <adria@revityapp.com>

* Merge

* Lint

* Fix console.warn failing mock by replacing with alerts mock instead

* Lint

---------

Co-authored-by: Adria Navarro <adria@revityapp.com>
2023-04-04 15:08:46 +01:00
mike12345567
cf5316ec8d General fixes for open handles, attempting to find and close all issues in server which are stopping shutdown of Jest suite. 2023-03-27 19:38:49 +01:00
Rory Powell
5cd6cb166a Configurable test log levels and common error handling 2023-02-13 11:53:01 +00:00
Rory Powell
c05b063f10 Bump CI default unit test timeout to 10s 2023-02-09 09:19:31 +00:00
adrinr
83f8e6ef2c Remove long timeout 2023-02-03 14:51:50 +00:00
adrinr
1d8c27bdc4 Increase timeout 2023-02-01 12:29:03 +00:00
adrinr
dd2a05fdcb Looking for testcontainer config 2023-01-31 11:23:26 +00:00
adrinr
2b8190418c Log as error 2023-01-31 10:30:57 +00:00
adrinr
9536111811 Add more logs 2023-01-31 10:21:19 +00:00
adrinr
08a2e77871 Fix jest.setup 2023-01-30 18:18:23 +00:00
Adria Navarro
26fa3bd484 tweak tests 2023-01-24 15:46:50 +00:00
Adria Navarro
d1d8ce3611 Move more stuff to .env.test 2023-01-23 18:02:28 +00:00
Adria Navarro
d6f0e5b1ec Dry, moving env variables to a .env.test file 2023-01-23 17:41:32 +00:00
Adria Navarro
98aa60879f Set parameters 2023-01-23 16:53:34 +00:00
Adria Navarro
106563c449 Use couchdb from docker container 2023-01-23 16:45:06 +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
Rory Powell
786039055e File authentication using presigned URLs (#8883)
* file auth wip

* Private plugin bucket wip

* Add etag to logo request, fix circular dependency

* Resolve cyclic dependency

* Ensure browser doesn't cache custom component

* Global file fixes

* File fixes / remove permaUrl

* Add ctx local storage

* Enable presigned url to work from any host

* Test fix

* Self hosting w/ S3 + other fixes

* Fix for serving dev app in multi tenant

* Fix backup restore and import attachment url processing, never store attachment urls

* Test fixes

* Unit tests WIP

* Replace file path with base64 encoded private key

* Multi tenancy tests for files

* Environment files fixes

* Post-merge build and test fixes

* Add debug conditional to all jest logging and revert/fix prod minio proxy_pass

* Re-add default '/' minio route :(

* Rename iconFile -> iconFileName

* Add cloudfront vars to k8s templates

* Remove public bucket policy

* Remove duplicated test
2022-12-15 11:35:22 +00:00
Rory Powell
f48ff01045 ensure fetch and aws are always mocked 2022-11-15 15:50:15 +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
Renamed from packages/server/scripts/jestSetup.ts (Browse further)