Skip to content

Commit 267df5b

Browse files
committed
chore: sync cloud validations after building packages as the network libs are needed
1 parent 4e45a6e commit 267df5b

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

.circleci/src/pipeline/@pipeline.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -193,17 +193,15 @@ commands:
193193
description: Save entire folder as artifact for other jobs to run without reinstalling
194194
steps:
195195
- run:
196-
name: Sync Cloud Validations
196+
name: Build packages
197197
command: |
198198
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
202200
- run:
203-
name: Build packages
201+
name: Sync Cloud Validations
204202
command: |
205203
source ./scripts/ensure-node.sh
206-
yarn build
204+
yarn gulp syncCloudValidations
207205
- run:
208206
name: Generate v8 snapshot
209207
command: |

packages/server/test/unit/cloud/api/cloud_request_spec.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
import sinon from 'sinon'
22
import sinonChai from 'sinon-chai'
33
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'
57
import axios, { CreateAxiosDefaults, AxiosInstance } from 'axios'
68
import debugLib from 'debug'
79
import stripAnsi from 'strip-ansi'

0 commit comments

Comments
 (0)