Skip to content

Commit

Permalink
KPMP-4608: tests pass with warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
rlreamy committed Aug 30, 2023
1 parent d7a3539 commit 7c3bbe0
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 1 deletion.
32 changes: 32 additions & 0 deletions package-lock.json

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

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,13 @@
},
"devDependencies": {
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
"jest-canvas-mock": "^2.5.2",
"sass": "1.64.0"
},
"scripts": {
"start": "npm-run-all --max-old-space-size=8192 -p watch-css start-js",
"build": "GENERATE_SOURCEMAP=false && npm-run-all --max-old-space-size=10240 build-css build-js",
"test": "GENERATE_SOURCEMAP=false && react-scripts test --passWithNoTests",
"test": "react-scripts test --transformIgnorePatterns '!node_modules/(?!@devexpress|@fontsource|decode-uri-component|query-string)'",
"eject": "react-scripts eject",
"start-js": "react-scripts start",
"build-js": "react-scripts --max-old-space-size=10240 build",
Expand Down
11 changes: 11 additions & 0 deletions src/helpers/Utils.test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,18 @@
import { availableDataVisibilityFilter } from "./Utils";
import * as apolloDependency from './ApolloClient';
import * as appDependency from '../App';


// test for availableDataVisibilityFilter
describe("availableDataVisibilityFilter", () => {


beforeEach(() => {
apolloDependency.fetchDataTypesForConcept= jest.fn();
appDependency.store = {}
});


test("should return data data if data hrtCount has a count of at least 1", () => {
const data = {
hrtCount: 1,
Expand Down

0 comments on commit 7c3bbe0

Please sign in to comment.