Skip to content

Commit

Permalink
Merge pull request #1003 from hms-dbmi-cellenics/add-spatial
Browse files Browse the repository at this point in the history
Add spatial
  • Loading branch information
alexvpickering authored Dec 6, 2024
2 parents e3f417b + 12a34f7 commit 78ebbb1
Show file tree
Hide file tree
Showing 93 changed files with 29,591 additions and 19,051 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# pull official base image
FROM node:22.9.0-alpine AS builder
FROM node:20.18.0-alpine AS builder

# set working directory
WORKDIR /app
Expand All @@ -12,7 +12,7 @@ COPY package.json package-lock.json /app/

# install dependencies
RUN apk add --no-cache git
RUN git config --global url."https://".insteadOf ssh:// && npm ci --only=production
RUN git config --global url."https://".insteadOf ssh:// && npm ci --only=production --legacy-peer-deps

# copy rest of app
COPY . .
Expand Down
3 changes: 3 additions & 0 deletions __mocks__/@hms-dbmi/viv.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
ZarrPixelSource: jest.fn(),
};
3 changes: 3 additions & 0 deletions __mocks__/zarrita.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
root: jest.fn(() => 'zarrRoot'),
};
4 changes: 4 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ module.exports = {
'^react-native$': 'react-native-web',
'^.+\\.module\\.(css|sass|scss)$': 'identity-obj-proxy',
uuid: require.resolve('uuid'), // https://stackoverflow.com/a/73203803

// couldn't get these to work in tests so mocking
'^zarrita$': '<rootDir>/__mocks__/zarrita.js',
'^@hms-dbmi/viv$': '<rootDir>/__mocks__/@hms-dbmi/viv.js',
},
moduleFileExtensions: [
'web.js',
Expand Down
Loading

0 comments on commit 78ebbb1

Please sign in to comment.