Skip to content

Commit

Permalink
Move setupTestFramework.js to webviz-core package (cruise-automation#272
Browse files Browse the repository at this point in the history
)

So we can keep it in sync with our internal version more easily.
  • Loading branch information
janpaul123 authored and surajhpatil committed Dec 31, 2019
1 parent b53fa32 commit c90c1da
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion jest/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ module.exports = {
"<rootDir>/jest/configureEnzyme.js",
"jest-canvas-mock",
],
setupTestFrameworkScriptFile: "<rootDir>/jest/setupTestFramework.js",
setupTestFrameworkScriptFile: "<rootDir>/packages/webviz-core/src/test/setupTestFramework.js",
moduleNameMapper: {
"worker-loader!./PngWorker.js": "<rootDir>/packages/webviz-core/src/test/MockWorker.js",
"worker-loader!.*/UserNodePlayer/.+Worker":
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
// @flow
//
// Copyright (c) 2019-present, GM Cruise LLC
//
// This source code is licensed under the Apache License, Version 2.0,
// found in the LICENSE file in the root directory of this source tree.
// You may not use this file except in compliance with the License.

import diff from "jest-diff";
import { isEqual } from "lodash";
import "react-hooks-testing-library/cleanup-after-each";

// this file runs once jest has injected globals so you can modify the expect matchers
global.expect.extend({
Expand Down

0 comments on commit c90c1da

Please sign in to comment.