Skip to content

Commit

Permalink
chore: update test dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
kabaros committed Oct 22, 2024
1 parent 9e28b61 commit 86c95a2
Show file tree
Hide file tree
Showing 14 changed files with 63 additions and 132 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"@dhis2/d2-i18n": "^1.1.0",
"@dhis2/prop-types": "2.0.3",
"@dhis2/ui": "^9.11.8",
"@testing-library/react": "^16.0.1",
"classnames": "^2.3.1",
"cronstrue": "^1.114.0",
"history": "^4.9.0",
Expand All @@ -28,14 +29,13 @@
},
"devDependencies": {
"@badeball/cypress-cucumber-preprocessor": "^20.0.3",
"@cfaester/enzyme-adapter-react-18": "^0.8.0",
"@cypress/webpack-preprocessor": "^6.0.1",
"@dhis2/cli-app-scripts": "^12.0.0-alpha.19",
"@dhis2/cli-style": "^10.7.4",
"@testing-library/cypress": "^10.0.1",
"@testing-library/react-hooks": "^8.0.1",
"cypress": "^13.7.2",
"enzyme": "^3.10.0",
"enzyme-adapter-react-16": "^1.15.6",
"eslint-plugin-compat": "^3.9.0",
"eslint-plugin-i18next": "^5.1.1",
"eslint-plugin-import": "^2.23.4",
Expand Down
2 changes: 1 addition & 1 deletion src/components/Store/hooks.test.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react'
import { renderHook } from '@testing-library/react-hooks'
import { renderHook } from '@testing-library/react'
import { useNameFilter, useShowSystemJobs } from './hooks'
import StoreContext from './StoreContext'

Expand Down
2 changes: 1 addition & 1 deletion src/hooks/job-types/use-job-type-parameters.test.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react'
import { renderHook } from '@testing-library/react-hooks'
import { renderHook } from '@testing-library/react'
import { CustomDataProvider } from '@dhis2/app-runtime'
import useJobTypeParameters from './use-job-type-parameters'

Expand Down
2 changes: 1 addition & 1 deletion src/hooks/job-types/use-job-type.test.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react'
import { renderHook } from '@testing-library/react-hooks'
import { renderHook } from '@testing-library/react'
import { CustomDataProvider } from '@dhis2/app-runtime'
import useJobType from './use-job-type'

Expand Down
2 changes: 1 addition & 1 deletion src/hooks/job-types/use-job-types.test.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react'
import { renderHook } from '@testing-library/react-hooks'
import { renderHook } from '@testing-library/react'
import { CustomDataProvider } from '@dhis2/app-runtime'
import useJobTypes from './use-job-types'

Expand Down
2 changes: 1 addition & 1 deletion src/hooks/jobs-and-queues/use-jobs-and-queues.test.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react'
import { renderHook } from '@testing-library/react-hooks'
import { renderHook } from '@testing-library/react'
import { CustomDataProvider } from '@dhis2/app-runtime'
import useJobsAndQueues from './use-jobs-and-queues'

Expand Down
2 changes: 1 addition & 1 deletion src/hooks/jobs/use-job-by-id.test.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react'
import { renderHook } from '@testing-library/react-hooks'
import { renderHook } from '@testing-library/react'
import { CustomDataProvider } from '@dhis2/app-runtime'
import useJobById from './use-job-by-id'

Expand Down
2 changes: 1 addition & 1 deletion src/hooks/jobs/use-jobs.test.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react'
import { renderHook } from '@testing-library/react-hooks'
import { renderHook } from '@testing-library/react'
import { CustomDataProvider } from '@dhis2/app-runtime'
import useJobs from './use-jobs'

Expand Down
2 changes: 1 addition & 1 deletion src/hooks/parameter-options/use-parameter-option.test.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react'
import { renderHook } from '@testing-library/react-hooks'
import { renderHook } from '@testing-library/react'
import { CustomDataProvider } from '@dhis2/app-runtime'
import useParameterOption from './use-parameter-option'

Expand Down
2 changes: 1 addition & 1 deletion src/hooks/parameter-options/use-parameter-options.test.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react'
import { renderHook } from '@testing-library/react-hooks'
import { renderHook } from '@testing-library/react'
import { CustomDataProvider } from '@dhis2/app-runtime'
import useParameterOptions from './use-parameter-options'

Expand Down
2 changes: 1 addition & 1 deletion src/hooks/queueables/use-queueables.test.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react'
import { renderHook } from '@testing-library/react-hooks'
import { renderHook } from '@testing-library/react'
import { CustomDataProvider } from '@dhis2/app-runtime'
import useQueueables from './use-queueables'

Expand Down
2 changes: 1 addition & 1 deletion src/hooks/queues/use-queue-by-name.test.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react'
import { renderHook } from '@testing-library/react-hooks'
import { renderHook } from '@testing-library/react'
import { CustomDataProvider } from '@dhis2/app-runtime'
import useQueueByName from './use-queue-by-name'

Expand Down
2 changes: 1 addition & 1 deletion src/setupTests.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-disable import/no-unused-modules */

import Enzyme from 'enzyme'
import Adapter from 'enzyme-adapter-react-16'
import Adapter from '@cfaester/enzyme-adapter-react-18'
import { cleanup, makeAdapter } from '../test/cleanup'

afterEach(cleanup)
Expand Down
Loading

0 comments on commit 86c95a2

Please sign in to comment.