1
0
mirror of https://github.com/kremalicious/portfolio.git synced 2024-12-22 17:23:22 +01:00

package updates

This commit is contained in:
Matthias Kretschmann 2022-11-05 19:16:56 +00:00
parent 49a84e295b
commit 1651497637
Signed by: m
GPG Key ID: 606EEEF3C479A91F
5 changed files with 1790 additions and 1931 deletions

3659
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -23,22 +23,22 @@
"@giphy/js-fetch-api": "^4.4.0", "@giphy/js-fetch-api": "^4.4.0",
"@kremalicious/react-feather": "^2.1.0", "@kremalicious/react-feather": "^2.1.0",
"@yaireo/relative-time": "^1.0.2", "@yaireo/relative-time": "^1.0.2",
"axios": "^0.27.2", "axios": "^1.1.3",
"file-saver": "^2.0.5", "file-saver": "^2.0.5",
"framer-motion": "^7.5.1", "framer-motion": "^7.6.4",
"gatsby": "^4.23.0", "gatsby": "^4.24.0",
"gatsby-plugin-image": "^2.23.0", "gatsby-plugin-image": "^2.24.0",
"gatsby-plugin-manifest": "^4.23.0", "gatsby-plugin-manifest": "^4.24.0",
"gatsby-plugin-matomo": "^0.13.0", "gatsby-plugin-matomo": "^0.13.0",
"gatsby-plugin-offline": "^5.23.0", "gatsby-plugin-offline": "^5.24.0",
"gatsby-plugin-react-helmet": "^5.23.0", "gatsby-plugin-react-helmet": "^5.24.0",
"gatsby-plugin-sharp": "^4.23.0", "gatsby-plugin-sharp": "^4.24.0",
"gatsby-plugin-sitemap": "^5.23.0", "gatsby-plugin-sitemap": "^5.24.0",
"gatsby-plugin-svgr": "^3.0.0-beta.0", "gatsby-plugin-svgr": "^3.0.0-beta.0",
"gatsby-source-filesystem": "^4.23.0", "gatsby-source-filesystem": "^4.24.0",
"gatsby-transformer-json": "^4.23.0", "gatsby-transformer-json": "^4.24.0",
"gatsby-transformer-sharp": "^4.23.0", "gatsby-transformer-sharp": "^4.24.0",
"gatsby-transformer-yaml": "^4.23.0", "gatsby-transformer-yaml": "^4.24.0",
"intersection-observer": "^0.12.2", "intersection-observer": "^0.12.2",
"react": "^18.2.0", "react": "^18.2.0",
"react-dom": "^18.2.0", "react-dom": "^18.2.0",
@ -51,31 +51,31 @@
"vcf": "^2.1.1" "vcf": "^2.1.1"
}, },
"devDependencies": { "devDependencies": {
"@babel/node": "^7.19.1", "@babel/node": "^7.20.2",
"@babel/preset-env": "^7.19.1", "@babel/preset-env": "^7.20.2",
"@svgr/webpack": "^6.3.1", "@svgr/webpack": "^6.5.1",
"@testing-library/jest-dom": "^5.16.5", "@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^13.4.0", "@testing-library/react": "^13.4.0",
"@welldone-software/why-did-you-render": "^7.0.1", "@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", "chalk": "4.1.2",
"eslint": "^8.24.0", "eslint": "^8.26.0",
"eslint-config-prettier": "^8.5.0", "eslint-config-prettier": "^8.5.0",
"eslint-plugin-graphql": "^4.0.0", "eslint-plugin-graphql": "^4.0.0",
"eslint-plugin-prettier": "^4.2.1", "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-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", "identity-obj-proxy": "^3.0.0",
"jest": "^29.0.3", "jest": "^29.2.2",
"jest-canvas-mock": "^2.4.0", "jest-canvas-mock": "^2.4.0",
"jest-environment-jsdom": "^29.0.3", "jest-environment-jsdom": "^29.2.2",
"js-yaml": "^4.1.0", "js-yaml": "^4.1.0",
"ora": "^6.1.2", "ora": "^6.1.2",
"prepend": "^1.0.2", "prepend": "^1.0.2",
"prettier": "^2.7.1", "prettier": "^2.7.1",
"slugify": "^1.6.5", "slugify": "^1.6.5",
"stylelint": "^14.13.0", "stylelint": "^14.14.1",
"stylelint-config-prettier": "^9.0.3", "stylelint-config-prettier": "^9.0.3",
"stylelint-prettier": "^2.0.0" "stylelint-prettier": "^2.0.0"
}, },

View File

@ -41,7 +41,7 @@ export default function Layout({ children, location }) {
<HostnameCheck allowedHosts={allowedHosts} /> <HostnameCheck allowedHosts={allowedHosts} />
<ThemeSwitch /> <ThemeSwitch />
<AnimatePresence exitBeforeEnter> <AnimatePresence mode="wait">
<motion.div <motion.div
key={location.pathname} key={location.pathname}
variants={fadeIn} variants={fadeIn}

View File

@ -6,9 +6,9 @@ import Layout from './Layout'
describe('Layout', () => { describe('Layout', () => {
const history = createHistory(createMemorySource('/oceanprotocol')) const history = createHistory(createMemorySource('/oceanprotocol'))
it('renders correctly', () => { it('renders correctly', async () => {
render(<Layout location={history.location}>Hello Layout</Layout>) render(<Layout location={history.location}>Hello Layout</Layout>)
const element = screen.getByText('Hello Layout') const element = await screen.findByText('Hello Layout')
expect(element).toBeInTheDocument() expect(element).toBeInTheDocument()
}) })
}) })

View File

@ -1,5 +1,5 @@
import React from 'react' import React from 'react'
import { render } from '@testing-library/react' import { render, screen } from '@testing-library/react'
import { createHistory, createMemorySource } from '@reach/router' import { createHistory, createMemorySource } from '@reach/router'
import Project from '../src/pages/{ProjectsYaml.slug}' import Project from '../src/pages/{ProjectsYaml.slug}'
import project from './__fixtures__/project.json' import project from './__fixtures__/project.json'
@ -8,9 +8,9 @@ describe('Project', () => {
const history = createHistory(createMemorySource('/oceanprotocol')) const history = createHistory(createMemorySource('/oceanprotocol'))
it('renders correctly from data file values', async () => { it('renders correctly from data file values', async () => {
const { container } = render( render(<Project data={project} location={history.location} />)
<Project data={project} location={history.location} />
) const item = await screen.findByText('Ocean Protocol v1')
expect(container.firstChild).toBeInTheDocument() expect(item).toBeInTheDocument()
}) })
}) })