Skip to content

Commit 39adb7f

Browse files
authored
Merge pull request #1375 from sasjs/@sasjs/adapter-bump
@sasjs/adapter bump
2 parents 2625ed9 + 6f82e51 commit 39adb7f

File tree

5 files changed

+14
-10
lines changed

5 files changed

+14
-10
lines changed

jest.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ module.exports = {
4444
coverageThreshold: {
4545
global: {
4646
statements: 73.51,
47-
branches: 60.6,
47+
branches: 60.57,
4848
functions: 73.56,
4949
lines: 74.17
5050
}

package-lock.json

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
"access": "public"
5252
},
5353
"dependencies": {
54-
"@sasjs/adapter": "4.9.2",
54+
"@sasjs/adapter": "4.10.0",
5555
"@sasjs/core": "4.46.3",
5656
"@sasjs/lint": "2.3.1",
5757
"@sasjs/utils": "3.4.0",

src/commands/job/internal/execute/viya.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ export async function executeJobViya(
143143

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

src/commands/testing/spec/testing.spec.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import * as sasJsModules from '../../../utils/createSASjsInstance'
2222
import { testResponses } from './mockedAdapter/testResponses'
2323
import * as fileModule from '@sasjs/utils/file'
2424
import * as utilsModule from '@sasjs/utils/utils'
25+
import * as readAndValidateInputModule from '@sasjs/utils/input/readAndValidateInput'
2526
import * as configUtils from '../../../utils/config'
2627
import chalk from 'chalk'
2728
import { mockAuthConfig } from '../../context/spec/mocks'
@@ -962,4 +963,7 @@ const setupMocksForSASJS = () => {
962963
}
963964
} as unknown as SASjs
964965
})
966+
jest
967+
.spyOn(readAndValidateInputModule, 'getString')
968+
.mockImplementation(() => Promise.resolve('mocked input'))
965969
}

0 commit comments

Comments
 (0)