Skip to content

Commit

Permalink
fix: #1289 mock aws/sdk in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Cuong Vu committed May 22, 2020
1 parent 27ac0ac commit d761382
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/web-components-config-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
"scripts": {
"lint": "concurrently \"tsc --noEmit\" \"eslint --cache --ext=ts,js src\"",
"lint:fix": "eslint --cache --ext=ts,js src --fix",
"test:ci": "yarn build:credentials && cross-env TZ=UTC jest --ci --colors --coverage --silent --forceExit",
"test:dev": "yarn build:credentials && cross-env TZ=UTC jest --watch --verbose",
"test:ci": "cross-env TZ=UTC jest --ci --colors --coverage --silent --forceExit",
"test:dev": "cross-env TZ=UTC jest --watch --verbose",
"start:dev": "yarn build:credentials && SLS_DEBUG=* serverless offline --verbose",
"build:serverless": "yarn build:credentials && serverless webpack --out dist --stage dev",
"release:dev": "yarn build:credentials && serverless deploy --stage dev",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ jest.mock('../logger')
jest.mock('uuid/v4', (): (() => string) => {
return () => 'mockUUID'
})
jest.mock('aws-sdk')

describe('app', () => {
describe('parseLog', () => {
Expand Down

0 comments on commit d761382

Please sign in to comment.