Commit Graph

26 Commits

Author SHA1 Message Date
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 658f12281d Fixes based on server build so far. 2022-11-26 15:10:41 +00:00
mike12345567 7eac8fafd6 Some server typescript re-writes, only automations left and some controllers. 2022-11-25 15:01:46 +00:00
Rory Powell 6cdcfe18c8 Disable automation chaining in cloud 2022-08-23 12:35:53 +01:00
mike12345567 a88ce0d608 Attempting to fix the issue with 4001, this updates the cypress tests so that it is easier to change the port on which it runs as well as updating the electron usage of the app to use port 0 (an ephermeral port). 2021-02-03 16:09:48 +00:00
mike12345567 5a7c0de397 Adding jest test cases to string templating library. 2021-01-19 17:29:38 +00:00
mike12345567 cdef4ead8c Removing mention of mustache from the server package. 2021-01-15 14:38:10 +00:00
mike12345567 837778c250 Fixing test case and also making sure that external trigger does what its expected to. 2020-12-07 17:55:35 +00:00
mike12345567 63f38ce99d Making chaining of automations through different row creation/deletions possible. 2020-12-07 17:23:53 +00:00
mike12345567 5b2be03bc3 Renaming instanceId -> appId to reduce confusion through the system, there only is one ID now. 2020-10-29 10:28:27 +00:00
mike12345567 5d49d529e3 Changing record -> row in this update, completing the update of renaming in the builder, this release needs further testing. 2020-10-09 19:10:28 +01:00
mike12345567 fdaa69ee7f Renaming Model -> Table across the entire system, this is an unstable update and has not been tested fully yet. 2020-10-09 18:49:23 +01:00
mike12345567 e798fca33b Fixing issue with modelId being returned from API causing next model update to cause model to be returned as a record from model record view. 2020-09-29 18:03:29 +01:00
mike12345567 7e3715d88a Some groundwork for the linked records, building up a much more in-depth emitter for models and records to drive the record cleanup. 2020-09-25 18:05:26 +01:00
mike12345567 5f064ade9d Renaming workflows -> automate/automations, throughout the API and the builder itself. 2020-09-21 13:49:34 +01:00
mike12345567 3a591c13d0 Major update to server workflow backend, implementing a very basic queue API in between triggers and orchestration and then moving everything around to keep it generally more concise, creating a directory to handle all workflow related matters as they do not pertain to the API (running of workflows is a completely separate operation). 2020-09-10 15:00:21 +01:00
Andrew Kingston 766d8ac8fc Add all workflow blocks to server and remove concept of workflow environment 2020-09-10 11:29:35 +01:00
Martin McKeaveney 9e00550eda Cypress Tests Running in CI (#524)
* cypress test setup

* running cypress in CI

* fixing tests after first time setup wizard

* bb api key

* API Key in right place

* adding env in cypress.json

* env var in setup

* lint

* API key not working

* fill in API key form if present

* allow more time for creation

* cypress server for debug

* video recording, better debugging

* Adding debug logs

* set node env

* cypress env

* cancel irrelevant test
2020-08-05 15:18:28 +01:00
Martin McKeaveney b719880ffc fix backend workflow 2020-06-04 13:55:52 +01:00
Martin McKeaveney b372f6b03d tidy up 2020-06-01 21:26:32 +01:00
Martin McKeaveney 176906e766 server side workflows 2020-06-01 16:22:13 +01:00
Martin McKeaveney cb496d1819 workflow DAO tests 2020-06-01 11:52:15 +01:00
Martin McKeaveney 15ba1a5a12 move workflow to array data structure 2020-06-01 10:41:28 +01:00
Martin McKeaveney 5c1aa00fd0 server side event emitter 2020-05-31 17:12:52 +01:00
Martin McKeaveney 6f0a84dd38 adding workflow blocks, parameter parsing, templating 2020-05-28 20:20:03 +01:00
Martin McKeaveney 0ea48245cf groundwork for pubsub 2020-05-24 22:54:08 +01:00