Skip to content

Commit

Permalink
Merge pull request #1375 from sasjs/@sasjs/adapter-bump
Browse files Browse the repository at this point in the history
@sasjs/adapter bump
  • Loading branch information
YuryShkoda authored Sep 11, 2023
2 parents 2625ed9 + 6f82e51 commit 39adb7f
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 10 deletions.
2 changes: 1 addition & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ module.exports = {
coverageThreshold: {
global: {
statements: 73.51,
branches: 60.6,
branches: 60.57,
functions: 73.56,
lines: 74.17
}
Expand Down
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"access": "public"
},
"dependencies": {
"@sasjs/adapter": "4.9.2",
"@sasjs/adapter": "4.10.0",
"@sasjs/core": "4.46.3",
"@sasjs/lint": "2.3.1",
"@sasjs/utils": "3.4.0",
Expand Down
2 changes: 1 addition & 1 deletion src/commands/job/internal/execute/viya.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ export async function executeJobViya(

// get additional information about error if it is present
result =
typeof err === 'object' && Object.keys(err).length
typeof err === 'object' && err.job && err.job?.state
? JSON.stringify({ state: err.job?.state })
: `${err}`

Expand Down
4 changes: 4 additions & 0 deletions src/commands/testing/spec/testing.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import * as sasJsModules from '../../../utils/createSASjsInstance'
import { testResponses } from './mockedAdapter/testResponses'
import * as fileModule from '@sasjs/utils/file'
import * as utilsModule from '@sasjs/utils/utils'
import * as readAndValidateInputModule from '@sasjs/utils/input/readAndValidateInput'
import * as configUtils from '../../../utils/config'
import chalk from 'chalk'
import { mockAuthConfig } from '../../context/spec/mocks'
Expand Down Expand Up @@ -962,4 +963,7 @@ const setupMocksForSASJS = () => {
}
} as unknown as SASjs
})
jest
.spyOn(readAndValidateInputModule, 'getString')
.mockImplementation(() => Promise.resolve('mocked input'))
}

0 comments on commit 39adb7f

Please sign in to comment.