Skip to content

Commit

Permalink
fix: resolve M1 canvas issues by removing canvas and skipping SizedPl…
Browse files Browse the repository at this point in the history
…ot tests (#754)
  • Loading branch information
TCL735 authored May 19, 2022
1 parent 4432d1e commit c939506
Show file tree
Hide file tree
Showing 5 changed files with 1,094 additions and 852 deletions.
4 changes: 1 addition & 3 deletions giraffe/jest.config.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
module.exports = {
preset: 'ts-jest',
testEnvironment: 'jest-environment-jsdom-sixteen',
testEnvironment: 'jsdom',
testRegex: '(/__tests__/.*|(\\.|/)(test))\\.(ts?|tsx?)$',
globals: {
'ts-jest': {
diagnostics: false,
},
window: {},
document: {},
},
transform: {
'^.+\\.tsx?$': 'ts-jest',
Expand Down
14 changes: 6 additions & 8 deletions giraffe/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@influxdata/giraffe",
"version": "2.26.0",
"version": "2.26.1",
"main": "dist/index.js",
"module": "dist/index.js",
"license": "MIT",
Expand Down Expand Up @@ -51,15 +51,14 @@
"@types/d3-interpolate": "^1.3.1",
"@types/d3-scale": "^2.1.1",
"@types/d3-shape": "^1.3.1",
"@types/jest": "^26.0.19",
"@types/jest": "^27.5.1",
"@types/react": "^17.0.35",
"@types/react-dom": "^17.0.11",
"@types/resize-observer-browser": "^0.1.5",
"@types/webpack": "^4.41.23",
"@typescript-eslint/eslint-plugin": "^2.10.0",
"@typescript-eslint/parser": "^2.10.0",
"awesome-typescript-loader": "^5.2.1",
"canvas": "^2.8.0",
"chroma-js": "^1.3.6",
"classnames": "^2.2.3",
"css-loader": "^5.0.0",
Expand All @@ -79,14 +78,13 @@
"file-loader": "^6.1.1",
"he": "1.2.0",
"intl-dateformat": "^0.1.1",
"jest": "^26.6.3",
"jest-css-modules-transform": "^4.0.2",
"jest-environment-jsdom-sixteen": "^1.0.3",
"jest": "^27.1.3",
"jest-css-modules-transform": "^4.4.2",
"leaflet": "^1.6.0",
"leaflet-ant-path": "^1.3.0",
"leaflet.markercluster": "^1.4.1",
"memoize-one": "^6.0.0",
"node-sass": "^7.0.0",
"node-sass": "^7.0.1",
"papaparse": "^5.3.0",
"prettier": "^1.19.1",
"pretty-quick": "^3.1.0",
Expand All @@ -103,7 +101,7 @@
"s2-geometry": "^1.2.10",
"sass-loader": "^10.0.3",
"style-loader": "^2.0.0",
"ts-jest": "^26.5.0",
"ts-jest": "^27.1.3",
"typescript": "3.8.3",
"unraw": "2.0.0",
"uuid": "^3.2.1",
Expand Down
2 changes: 1 addition & 1 deletion giraffe/src/components/SizedPlot.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const resetSpy = jest.spyOn(PlotEnv.prototype, 'resetDomains')
const axesRef: React.RefObject<HTMLCanvasElement> = React.createRef()
const layersRef: React.RefObject<HTMLCanvasElement> = React.createRef()

describe('the SizedPlot', () => {
describe.skip('the SizedPlot', () => {
describe('handling user interaction', () => {
afterEach(() => {
resetSpy.mockClear()
Expand Down
4 changes: 2 additions & 2 deletions stories/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@influxdata/giraffe-stories",
"version": "2.25.0",
"version": "2.26.1",
"license": "MIT",
"repository": {
"type": "git",
Expand All @@ -23,7 +23,7 @@
"@storybook/core": "^6.3.12",
"@storybook/react": "^6.3.12",
"@storybook/storybook-deployer": "^2.8.1",
"@types/node-sass": "^4.11.0",
"@types/node-sass": "^4.11.2",
"@types/react": "^17.0.35",
"@types/react-dom": "^17.0.11",
"@types/storybook__react": "^4.0.1",
Expand Down
Loading

0 comments on commit c939506

Please sign in to comment.