Skip to content

Commit

Permalink
Fix tests (#97)
Browse files Browse the repository at this point in the history
  • Loading branch information
taneliang authored Jul 29, 2020
1 parent b9f310c commit d891dcc
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 24 deletions.
8 changes: 0 additions & 8 deletions .babelrc

This file was deleted.

5 changes: 5 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {
presets: [
['react-app', {absoluteRuntime: false, flow: true, typescript: false}],
],
};
4 changes: 4 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,8 @@ module.exports = {
moduleNameMapper: {
'\\.css$': 'identity-obj-proxy',
},
transformIgnorePatterns: [
// Pass @elg/speedscope through transforms
'/node_modules/(?!@elg/speedscope).+\\.js$',
],
};
22 changes: 22 additions & 0 deletions src/util/__tests__/__snapshots__/preprocessData-test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -573,6 +573,17 @@ Object {
"type": "suspense-resolved",
},
],
"flamechart": Flamechart {
"layers": Array [],
"minFrameWidth": 1,
"source": Object {
"forEachCall": [Function],
"formatValue": [Function],
"getColorBucketForFrame": [Function],
"getTotalWeight": [Function],
},
"totalWeight": -8993778496,
},
"measures": Array [
Object {
"batchUID": 0,
Expand Down Expand Up @@ -1276,6 +1287,17 @@ Object {
"type": "schedule-force-update",
},
],
"flamechart": Flamechart {
"layers": Array [],
"minFrameWidth": 1,
"source": Object {
"forEachCall": [Function],
"formatValue": [Function],
"getColorBucketForFrame": [Function],
"getTotalWeight": [Function],
},
"totalWeight": -40806924876,
},
"measures": Array [
Object {
"batchUID": 0,
Expand Down
24 changes: 8 additions & 16 deletions src/util/__tests__/preprocessData-test.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 comment on commit d891dcc

@vercel
Copy link

@vercel vercel bot commented on d891dcc Jul 29, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.