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 @@ -195,17 +195,15 @@ commands:
195
195
description : Save entire folder as artifact for other jobs to run without reinstalling
196
196
steps :
197
197
- run :
198
- name : Sync Cloud Validations
198
+ name : Build packages
199
199
command : |
200
200
source ./scripts/ensure-node.sh
201
- yarn workspace @packages/network-tools build
202
- yarn workspace @packages/network build
203
- yarn gulp syncCloudValidations
201
+ yarn build
204
202
- run :
205
- name : Build packages
203
+ name : Sync Cloud Validations
206
204
command : |
207
205
source ./scripts/ensure-node.sh
208
- yarn build
206
+ yarn gulp syncCloudValidations
209
207
- run :
210
208
name : Generate v8 snapshot
211
209
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