mirror of
https://github.com/kremalicious/portfolio.git
synced 2024-12-22 09:13:19 +01:00
package updates
This commit is contained in:
parent
49a84e295b
commit
1651497637
3659
package-lock.json
generated
3659
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
46
package.json
46
package.json
@ -23,22 +23,22 @@
|
||||
"@giphy/js-fetch-api": "^4.4.0",
|
||||
"@kremalicious/react-feather": "^2.1.0",
|
||||
"@yaireo/relative-time": "^1.0.2",
|
||||
"axios": "^0.27.2",
|
||||
"axios": "^1.1.3",
|
||||
"file-saver": "^2.0.5",
|
||||
"framer-motion": "^7.5.1",
|
||||
"gatsby": "^4.23.0",
|
||||
"gatsby-plugin-image": "^2.23.0",
|
||||
"gatsby-plugin-manifest": "^4.23.0",
|
||||
"framer-motion": "^7.6.4",
|
||||
"gatsby": "^4.24.0",
|
||||
"gatsby-plugin-image": "^2.24.0",
|
||||
"gatsby-plugin-manifest": "^4.24.0",
|
||||
"gatsby-plugin-matomo": "^0.13.0",
|
||||
"gatsby-plugin-offline": "^5.23.0",
|
||||
"gatsby-plugin-react-helmet": "^5.23.0",
|
||||
"gatsby-plugin-sharp": "^4.23.0",
|
||||
"gatsby-plugin-sitemap": "^5.23.0",
|
||||
"gatsby-plugin-offline": "^5.24.0",
|
||||
"gatsby-plugin-react-helmet": "^5.24.0",
|
||||
"gatsby-plugin-sharp": "^4.24.0",
|
||||
"gatsby-plugin-sitemap": "^5.24.0",
|
||||
"gatsby-plugin-svgr": "^3.0.0-beta.0",
|
||||
"gatsby-source-filesystem": "^4.23.0",
|
||||
"gatsby-transformer-json": "^4.23.0",
|
||||
"gatsby-transformer-sharp": "^4.23.0",
|
||||
"gatsby-transformer-yaml": "^4.23.0",
|
||||
"gatsby-source-filesystem": "^4.24.0",
|
||||
"gatsby-transformer-json": "^4.24.0",
|
||||
"gatsby-transformer-sharp": "^4.24.0",
|
||||
"gatsby-transformer-yaml": "^4.24.0",
|
||||
"intersection-observer": "^0.12.2",
|
||||
"react": "^18.2.0",
|
||||
"react-dom": "^18.2.0",
|
||||
@ -51,31 +51,31 @@
|
||||
"vcf": "^2.1.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/node": "^7.19.1",
|
||||
"@babel/preset-env": "^7.19.1",
|
||||
"@svgr/webpack": "^6.3.1",
|
||||
"@babel/node": "^7.20.2",
|
||||
"@babel/preset-env": "^7.20.2",
|
||||
"@svgr/webpack": "^6.5.1",
|
||||
"@testing-library/jest-dom": "^5.16.5",
|
||||
"@testing-library/react": "^13.4.0",
|
||||
"@welldone-software/why-did-you-render": "^7.0.1",
|
||||
"babel-preset-gatsby": "^2.22.1",
|
||||
"babel-preset-gatsby": "^2.24.0",
|
||||
"chalk": "4.1.2",
|
||||
"eslint": "^8.24.0",
|
||||
"eslint": "^8.26.0",
|
||||
"eslint-config-prettier": "^8.5.0",
|
||||
"eslint-plugin-graphql": "^4.0.0",
|
||||
"eslint-plugin-prettier": "^4.2.1",
|
||||
"eslint-plugin-react": "^7.31.8",
|
||||
"eslint-plugin-react": "^7.31.10",
|
||||
"eslint-plugin-react-hooks": "^4.6.0",
|
||||
"eslint-plugin-testing-library": "^5.7.0",
|
||||
"eslint-plugin-testing-library": "^5.9.1",
|
||||
"identity-obj-proxy": "^3.0.0",
|
||||
"jest": "^29.0.3",
|
||||
"jest": "^29.2.2",
|
||||
"jest-canvas-mock": "^2.4.0",
|
||||
"jest-environment-jsdom": "^29.0.3",
|
||||
"jest-environment-jsdom": "^29.2.2",
|
||||
"js-yaml": "^4.1.0",
|
||||
"ora": "^6.1.2",
|
||||
"prepend": "^1.0.2",
|
||||
"prettier": "^2.7.1",
|
||||
"slugify": "^1.6.5",
|
||||
"stylelint": "^14.13.0",
|
||||
"stylelint": "^14.14.1",
|
||||
"stylelint-config-prettier": "^9.0.3",
|
||||
"stylelint-prettier": "^2.0.0"
|
||||
},
|
||||
|
@ -41,7 +41,7 @@ export default function Layout({ children, location }) {
|
||||
<HostnameCheck allowedHosts={allowedHosts} />
|
||||
<ThemeSwitch />
|
||||
|
||||
<AnimatePresence exitBeforeEnter>
|
||||
<AnimatePresence mode="wait">
|
||||
<motion.div
|
||||
key={location.pathname}
|
||||
variants={fadeIn}
|
||||
|
@ -6,9 +6,9 @@ import Layout from './Layout'
|
||||
describe('Layout', () => {
|
||||
const history = createHistory(createMemorySource('/oceanprotocol'))
|
||||
|
||||
it('renders correctly', () => {
|
||||
it('renders correctly', async () => {
|
||||
render(<Layout location={history.location}>Hello Layout</Layout>)
|
||||
const element = screen.getByText('Hello Layout')
|
||||
const element = await screen.findByText('Hello Layout')
|
||||
expect(element).toBeInTheDocument()
|
||||
})
|
||||
})
|
||||
|
@ -1,5 +1,5 @@
|
||||
import React from 'react'
|
||||
import { render } from '@testing-library/react'
|
||||
import { render, screen } from '@testing-library/react'
|
||||
import { createHistory, createMemorySource } from '@reach/router'
|
||||
import Project from '../src/pages/{ProjectsYaml.slug}'
|
||||
import project from './__fixtures__/project.json'
|
||||
@ -8,9 +8,9 @@ describe('Project', () => {
|
||||
const history = createHistory(createMemorySource('/oceanprotocol'))
|
||||
|
||||
it('renders correctly from data file values', async () => {
|
||||
const { container } = render(
|
||||
<Project data={project} location={history.location} />
|
||||
)
|
||||
expect(container.firstChild).toBeInTheDocument()
|
||||
render(<Project data={project} location={history.location} />)
|
||||
|
||||
const item = await screen.findByText('Ocean Protocol v1')
|
||||
expect(item).toBeInTheDocument()
|
||||
})
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user