Skip to content

Commit 768edf0

Browse files
committed
fix tests
1 parent 6889d60 commit 768edf0

File tree

3 files changed

+4
-29
lines changed

3 files changed

+4
-29
lines changed

app/package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,9 @@
194194
],
195195
"transformIgnorePatterns": [
196196
"node_modules/(?!(react-use-localstorage)).*\\.js$"
197-
]
197+
],
198+
"moduleNameMapper": {
199+
"monaco-editor": "<rootDir>/node_modules/@monaco-editor/react"
200+
}
198201
}
199202
}

app/src/components/Router.test.tsx

Lines changed: 0 additions & 18 deletions
This file was deleted.

app/src/lib/prepareChart/prepareChart.test.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -165,11 +165,6 @@ longer label text
165165

166166
test("if a document has a parser it shouldn't change", () => {
167167
expect(prepareChart(getFixture("example8"))).toEqual({
168-
details: {
169-
id: "",
170-
isHosted: false,
171-
title: "",
172-
},
173168
meta: {
174169
parser: "v1",
175170
},
@@ -179,11 +174,6 @@ longer label text
179174

180175
test("if a document has no parser but has default text, add v1", () => {
181176
expect(prepareChart(getFixture("example9"))).toEqual({
182-
details: {
183-
id: "",
184-
isHosted: false,
185-
title: "",
186-
},
187177
meta: {
188178
parser: "v1",
189179
},

0 commit comments

Comments
 (0)