Skip to content

Commit

Permalink
feat(packages/sui-test-contract): sync typescript versions
Browse files Browse the repository at this point in the history
  • Loading branch information
kikoruiz committed Oct 17, 2023
1 parent 561bca9 commit 5c75ada
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions packages/sui-test-contract/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
},
"dependencies": {
"@pact-foundation/pact": "9.18.1",
"@pactflow/pact-msw-adapter": "1.2.1",
"@s-ui/mock": "1",
"@pactflow/pact-msw-adapter": "2.0.0",
"@s-ui/mock": "typescript",
"commander": "8.3.0",
"headers-polyfill": "3.1.2"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/sui-test-contract/src/setup/utils.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {stringify} from 'qs'

import {writeData2File} from '@pactflow/pact-msw-adapter/dist/utils/utils.js'
import {createWriter} from '@pactflow/pact-msw-adapter/dist/utils/utils.js'

const flatEntries = (input, prefix = '') =>
Object.entries(input).flatMap(([key, value]) => {
Expand Down Expand Up @@ -61,7 +61,7 @@ export const writerFactory = providers => (path, data) => {
})

console.log(`Writing the Pact file "${path}"`) // eslint-disable-line
writeData2File(path, data)
createWriter()(path, data)
}

export const mapProviders = providers =>
Expand Down
3 changes: 2 additions & 1 deletion packages/sui-test-contract/test/server/setupSpec.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import {expect} from 'chai'

import {FetcherFactory} from '@s-ui/domain'
import {rest} from '@s-ui/mock'
import mock from '@s-ui/mock'

import {setupContractTests} from '../../src/index.js'
import {getContractFileData, removeContractFiles} from '../utils.js'

const {rest} = mock
const fetcher = FetcherFactory.httpFetcher({config: {}})
const consumer = 'test-consumer'
const fujiAppleResponse = {color: 'red', type: 'Fuji'}
Expand Down

0 comments on commit 5c75ada

Please sign in to comment.