Skip to content

Commit

Permalink
fix: spec tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fpdrozd committed Nov 28, 2022
1 parent cee6f64 commit f03f810
Show file tree
Hide file tree
Showing 10 changed files with 28 additions and 12,430 deletions.
3 changes: 3 additions & 0 deletions Dockerfile.test-runtime
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ WORKDIR /sdk
COPY . /sdk

RUN npm install npm@8.19.2 -g
RUN ls
RUN ls packages
RUN ls packages/sdk-core
RUN npm install
RUN npm run build
RUN npm run pack
Expand Down
4 changes: 2 additions & 2 deletions docker/express/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import sdk from '@spree/storefront-api-v2-sdk'
import createAxiosFetcher from '@spree/storefront-api-v2-sdk-axios/dist/server/index.js'
import createFetchFetcher from '@spree/storefront-api-v2-sdk-node-fetch/dist/server/index.js'

const { makeClient, result } = sdk
const { makeClient, toJson } = sdk

const app = express()

Expand Down Expand Up @@ -44,7 +44,7 @@ app.all('/', async (request, response, next) => {

const spreeResponse = await finalNode(...argumentsList)

response.json(result.toJson(spreeResponse))
response.json(toJson(spreeResponse))
} catch (error) {
next(error)
}
Expand Down
Loading

0 comments on commit f03f810

Please sign in to comment.