File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
packages/server/test/unit/cloud/api Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -193,17 +193,15 @@ commands:
193
193
description : Save entire folder as artifact for other jobs to run without reinstalling
194
194
steps :
195
195
- run :
196
- name : Sync Cloud Validations
196
+ name : Build packages
197
197
command : |
198
198
source ./scripts/ensure-node.sh
199
- yarn workspace @packages/network-tools build
200
- yarn workspace @packages/network build
201
- yarn gulp syncCloudValidations
199
+ yarn build
202
200
- run :
203
- name : Build packages
201
+ name : Sync Cloud Validations
204
202
command : |
205
203
source ./scripts/ensure-node.sh
206
- yarn build
204
+ yarn gulp syncCloudValidations
207
205
- run :
208
206
name : Generate v8 snapshot
209
207
command : |
Original file line number Diff line number Diff line change 1
1
import sinon from 'sinon'
2
2
import sinonChai from 'sinon-chai'
3
3
import chai , { expect } from 'chai'
4
- import agent , { strictAgent } from '@packages/network'
4
+ // NOTE: having to import directly from the lib folder as we cannot test ES6 classes effectively with sinon.
5
+ // Since this is a test, this is OK, but testing directly from lib in other modules is not a best practice.
6
+ import agent , { strictAgent } from '@packages/network/lib/agent'
5
7
import axios , { CreateAxiosDefaults , AxiosInstance } from 'axios'
6
8
import debugLib from 'debug'
7
9
import stripAnsi from 'strip-ansi'
You can’t perform that action at this time.
0 commit comments