@openneuro/app 4.20.0-alpha.0 → 4.20.0-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openneuro/app",
3
- "version": "4.20.0-alpha.0",
3
+ "version": "4.20.0-alpha.2",
4
4
  "description": "React JS web frontend for the OpenNeuro platform.",
5
5
  "license": "MIT",
6
6
  "main": "public/client.js",
@@ -20,8 +20,8 @@
20
20
  "@emotion/react": "11.11.1",
21
21
  "@emotion/styled": "11.11.0",
22
22
  "@niivue/niivue": "0.34.0",
23
- "@openneuro/client": "^4.20.0-alpha.0",
24
- "@openneuro/components": "^4.20.0-alpha.0",
23
+ "@openneuro/client": "^4.20.0-alpha.2",
24
+ "@openneuro/components": "^4.20.0-alpha.2",
25
25
  "@tanstack/react-table": "^8.9.3",
26
26
  "bids-validator": "1.10.0",
27
27
  "bytes": "^3.0.0",
@@ -47,7 +47,7 @@
47
47
  "universal-cookie": "^4.0.4"
48
48
  },
49
49
  "devDependencies": {
50
- "@testing-library/jest-dom": "^5.11.4",
50
+ "@testing-library/jest-dom": "6.1.3",
51
51
  "@testing-library/react": "^11.1.0",
52
52
  "@types/jsdom": "^16",
53
53
  "@types/node": "18.11.9",
@@ -64,11 +64,11 @@
64
64
  "sass": "^1.32.8",
65
65
  "stream-browserify": "^3.0.0",
66
66
  "typescript": "5.1.6",
67
- "vite": "^3.2.7",
68
- "vitest": "0.33.0"
67
+ "vite": "4.4.9",
68
+ "vitest": "0.34.4"
69
69
  },
70
70
  "publishConfig": {
71
71
  "access": "public"
72
72
  },
73
- "gitHead": "cc6822c27d8e66562e325042fc11a2998cb2eef7"
73
+ "gitHead": "b37dcf6dc3767d5d09eb208aff509be4221f6518"
74
74
  }
@@ -1,7 +1,6 @@
1
1
  import React from 'react'
2
2
  import { render } from '@testing-library/react'
3
3
  import Helmet from 'react-helmet'
4
- import '@testing-library/jest-dom/extend-expect'
5
4
  import { SnapshotContainer } from '../snapshot-container'
6
5
  import { MockAppWrapper } from '../../fixtures/mock-app-wrapper'
7
6
  import { dataset, snapshot } from '../../fixtures/dataset-query'
@@ -1,6 +1,5 @@
1
1
  import React from 'react'
2
2
  import { render, screen } from '@testing-library/react'
3
- import '@testing-library/jest-dom/extend-expect'
4
3
  import { DownloadSampleCommand } from '../download-command-line.jsx'
5
4
 
6
5
  const defProps = { datasetId: 'ds000001' }
@@ -1,6 +1,5 @@
1
1
  import React from 'react'
2
2
  import { render, screen } from '@testing-library/react'
3
- import '@testing-library/jest-dom/extend-expect'
4
3
  import { MemoryRouter } from 'react-router-dom'
5
4
  import { DatasetAlertDraft } from '../dataset-alert-draft'
6
5
 
@@ -57,7 +57,6 @@ const DeleteDatasetForm = ({ values, onChange, hasEdit }) => (
57
57
  },
58
58
  i,
59
59
  ) => (
60
- // @ts-expect-error
61
60
  <FieldComponent
62
61
  name={key}
63
62
  label={label}
@@ -357,7 +357,6 @@ const MetadataForm = ({
357
357
  },
358
358
  i,
359
359
  ) => (
360
- // @ts-expect-error
361
360
  <FieldComponent
362
361
  name={key}
363
362
  label={label}
@@ -1,7 +1,6 @@
1
1
  import React from 'react'
2
2
  import { SearchParamsCtx } from '../search-params-ctx'
3
3
  import { render } from '@testing-library/react'
4
- import { queries } from '@testing-library/dom'
5
4
 
6
5
  /**
7
6
  * Render with SearchParamsCtx state
@@ -4,7 +4,6 @@ import { SearchParamsProvider, SearchParamsCtx } from '../search-params-ctx'
4
4
  import AuthorInput from '../inputs/author-input'
5
5
  import initialSearchParams from '../initial-search-params'
6
6
  import { MemoryRouter } from 'react-router-dom'
7
- import '@testing-library/jest-dom'
8
7
 
9
8
  describe('SearchParamsProvider', () => {
10
9
  it('restores URL searchParams state', () => {