Skip to content

Commit

Permalink
fix: update dependencies so tests run
Browse files Browse the repository at this point in the history
Tests still error, but we're looking better now.
  • Loading branch information
joebobmiles committed Jun 28, 2023
1 parent e44b405 commit 81458f7
Show file tree
Hide file tree
Showing 9 changed files with 11,953 additions and 19,420 deletions.
5 changes: 4 additions & 1 deletion jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ const config: Config.InitialOptions = {
moduleNameMapper: {
'^@/(.*)$': '<rootDir>$1'
},
testEnvironment: 'jsdom'
testEnvironment: 'jsdom',
testEnvironmentOptions: {
url: 'http://localhost/'
}
}

export default config
31,317 changes: 11,924 additions & 19,393 deletions package-lock.json

Large diffs are not rendered by default.

39 changes: 19 additions & 20 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,35 +36,34 @@
"url": "https://github.com/joebobmiles/y-react/issues"
},
"devDependencies": {
"@commitlint/cli": "^13.1.0",
"@commitlint/config-conventional": "^13.1.0",
"@commitlint/cli": "^17.6.6",
"@commitlint/config-conventional": "^17.6.6",
"@rollup/plugin-alias": "^3.1.5",
"@rollup/plugin-commonjs": "^20.0.0",
"@rollup/plugin-node-resolve": "^13.0.4",
"@rollup/plugin-typescript": "^8.2.5",
"@semantic-release/git": "^9.0.0",
"@testing-library/react": "^12.0.0",
"@testing-library/react-hooks": "^7.0.1",
"@types/jest": "^27.0.1",
"@types/react": "^17.0.19",
"babel-jest": "^27.0.6",
"@semantic-release/git": "^10.0.1",
"@testing-library/react": "^14.0.0",
"@types/jest": "^29.5.2",
"@types/react": "^18.2.14",
"babel-jest": "^29.5.0",
"husky": "^7.0.1",
"jest": "^27.0.6",
"jest": "^29.5.0",
"jest-environment-jsdom": "^29.5.0",
"rollup": "^2.56.2",
"semantic-release": "^17.4.6",
"standard": "^16.0.3",
"ts-jest": "^27.0.5",
"ts-node": "^10.2.1",
"ts-standard": "^10.0.0",
"typescript": "^4.3.5"
"semantic-release": "^21.0.5",
"ts-jest": "^29.1.0",
"ts-node": "^10.9.1",
"ts-standard": "^12.0.2",
"typescript": "^5.1.3"
},
"dependencies": {
"react": "^17.0.2",
"y-indexeddb": "^9.0.6",
"react": "^18.2.0",
"y-indexeddb": "^9.0.11",
"y-protocols": "^1.0.5",
"y-webrtc": "^10.2.0",
"y-websocket": "^1.3.16",
"yjs": "^13.5.12"
"y-webrtc": "^10.2.5",
"y-websocket": "^1.5.0",
"yjs": "^13.6.6"
},
"exports": {
"require": "./dist/y-react.cjs",
Expand Down
2 changes: 1 addition & 1 deletion src/feature/awareness/hook.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { act, renderHook } from '@testing-library/react-hooks'
import { act, renderHook } from '@testing-library/react'

import * as Y from 'yjs'
import { Awareness } from 'y-protocols/awareness'
Expand Down
2 changes: 1 addition & 1 deletion src/feature/doc/index.spec.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { renderHook } from '@testing-library/react-hooks'
import { renderHook } from '@testing-library/react'

import React from 'react'
import * as Y from 'yjs'
Expand Down
2 changes: 1 addition & 1 deletion src/feature/provider/hook/useIndexedDb.spec.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { renderHook } from '@testing-library/react-hooks'
import { renderHook } from '@testing-library/react'

import React from 'react'
import { IndexeddbPersistence } from 'y-indexeddb'
Expand Down
2 changes: 1 addition & 1 deletion src/feature/provider/hook/useWebRtc.spec.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* eslint-env jest */
import { renderHook } from '@testing-library/react-hooks'
import { renderHook } from '@testing-library/react'

import React from 'react'
import * as Y from 'yjs'
Expand Down
2 changes: 1 addition & 1 deletion src/feature/provider/hook/useWebSocket.spec.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { renderHook } from '@testing-library/react-hooks'
import { renderHook } from '@testing-library/react'

import React from 'react'
import { WebsocketProvider } from 'y-websocket'
Expand Down
2 changes: 1 addition & 1 deletion src/feature/shared-type/index.spec.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { act, renderHook } from '@testing-library/react-hooks'
import { act, renderHook } from '@testing-library/react'

import React from 'react'
import * as Y from 'yjs'
Expand Down

0 comments on commit 81458f7

Please sign in to comment.