Skip to content

Commit

Permalink
Updates dependencies (#1188)
Browse files Browse the repository at this point in the history
* updates deps

* update ci conf as well

* node 18 for real

* workon prettier

* cypress update

* clip a rule

* linter
  • Loading branch information
coilysiren authored Sep 24, 2023
1 parent b712209 commit d3cc05c
Show file tree
Hide file tree
Showing 9 changed files with 14,429 additions and 53,431 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
# https://github.com/actions/runner-images
runs-on: ubuntu-22.04
# https://hub.docker.com/_/node/
container: node:16
container: node:18
steps:
# https://github.com/actions/checkout
- uses: actions/checkout@v3
Expand All @@ -22,13 +22,13 @@ jobs:
# https://github.com/actions/runner-images
runs-on: ubuntu-22.04
# https://docs.cypress.io/examples/docker
container: cypress/included:7.7.0
container: cypress/included:13.2.0
steps:
# https://github.com/actions/checkout
- uses: actions/checkout@v3
# https://github.com/actions/setup-node
- uses: actions/setup-node@v3
with:
node-version: 16
node-version: 18
- run: npm ci
- run: npm run test:e2e:ci
13 changes: 13 additions & 0 deletions cypress.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
const { defineConfig } = require("cypress")

module.exports = defineConfig({
video: false,
e2e: {
// We've imported your old cypress plugins here.
// You may want to clean this up later by importing these.
setupNodeEvents(on, config) {
return require("./cypress/plugins")(on, config)
},
baseUrl: "http://localhost:8000/",
},
})
4 changes: 0 additions & 4 deletions cypress.json

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@ describe("Basic test workflow", () => {
// Setup
cy.visit("http://localhost:8000/")
cy.get(".blog-main-title").click()
cy.get(".homepage-post")
.eq(0)
.click()
cy.get(".homepage-post").eq(0).click()

// Assertions
cy.url().should("include", "/posts/")
Expand Down
File renamed without changes.
2 changes: 0 additions & 2 deletions gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ module.exports = {
name: "pages",
},
},
"gatsby-plugin-netlify-cms",
"gatsby-plugin-sharp",
"gatsby-transformer-sharp",
{
Expand Down Expand Up @@ -65,6 +64,5 @@ module.exports = {
],
},
},
"gatsby-plugin-netlify",
],
}
6 changes: 3 additions & 3 deletions gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ exports.createPages = ({ actions, graphql }) => {
}
}
}
`).then(result => {
`).then((result) => {
if (result.errors) {
result.errors.forEach(error => console.error(error.toString()))
result.errors.forEach((error) => console.error(error.toString()))
return Promise.reject(result.errors)
}

const posts = result.data.allMarkdownRemark.edges

posts.forEach(edge => {
posts.forEach((edge) => {
const { id } = edge.node
createPage({
path: edge.node.fields.slug,
Expand Down
Loading

0 comments on commit d3cc05c

Please sign in to comment.