Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/develop' into retry-flake
Browse files Browse the repository at this point in the history
  • Loading branch information
flotwig committed Dec 9, 2022
2 parents 55c6770 + 910f912 commit bc7dbe2
Show file tree
Hide file tree
Showing 31 changed files with 195 additions and 185 deletions.
2 changes: 1 addition & 1 deletion npm/grep/cypress/e2e/unit.js
Expand Up @@ -158,7 +158,7 @@ describe('utils', () => {
])
})

// FIXME: would need to change the tokenizer
// TODO: would need to change the tokenizer
it.skip('parses tag1 but not tag2', () => {
const parsed = parseTagsGrep('@tag1-@tag2')

Expand Down
6 changes: 4 additions & 2 deletions npm/webpack-preprocessor/package.json
Expand Up @@ -21,7 +21,10 @@
"lint": "eslint --ext .js,.jsx,.ts,.tsx,.json, ."
},
"dependencies": {
"@babel/parser": "7.13.0",
"@babel/core": "^7.0.1",
"@babel/generator": "^7.17.9",
"@babel/parser": "^7.13.0",
"@babel/traverse": "^7.17.9",
"bluebird": "3.7.1",
"debug": "^4.3.2",
"fs-extra": "^10.1.0",
Expand All @@ -32,7 +35,6 @@
"webpack-virtual-modules": "^0.4.4"
},
"devDependencies": {
"@babel/core": "^7.0.1",
"@babel/plugin-proposal-nullish-coalescing-operator": "7.8.3",
"@babel/preset-env": "^7.0.0",
"@fellow/eslint-plugin-coffee": "0.4.13",
Expand Down
4 changes: 2 additions & 2 deletions packages/app/cypress/e2e/runner/ct-framework-errors.cy.ts
Expand Up @@ -265,8 +265,8 @@ describe('Vue', {
'Timed out retrying',
'element-that-does-not-exist',
],
codeFrameRegex: /Errors\.cy\.js:26/,
stackRegex: /Errors\.cy\.js:26/,
codeFrameRegex: /Errors\.cy\.js:25/,
stackRegex: /Errors\.cy\.js:25/,
})
})
})
Expand Down
11 changes: 11 additions & 0 deletions system-tests/project-fixtures/.eslintrc.json
@@ -0,0 +1,11 @@
{
"plugins": [
"cypress"
],
"env": {
"cypress/globals": true
},
"rules": {
"mocha/no-global-tests": "off"
}
}
10 changes: 5 additions & 5 deletions system-tests/project-fixtures/cra/src/App.js
@@ -1,7 +1,7 @@
import logo from './logo.svg';
import './App.css';
import logo from './logo.svg'
import './App.css'

function App() {
function App () {
return (
<div className="App">
<header className="App-header">
Expand All @@ -19,7 +19,7 @@ function App() {
</a>
</header>
</div>
);
)
}

export default App;
export default App
12 changes: 6 additions & 6 deletions system-tests/project-fixtures/cra/src/index.js
@@ -1,11 +1,11 @@
import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import React from 'react'
import ReactDOM from 'react-dom'
import './index.css'
import App from './App'

ReactDOM.render(
<React.StrictMode>
<App />
</React.StrictMode>,
document.getElementById('root')
);
document.getElementById('root'),
)
14 changes: 7 additions & 7 deletions system-tests/project-fixtures/next/cypress.config.js
@@ -1,4 +1,4 @@
const path = require('path');
const path = require('path')

module.exports = {
component: {
Expand All @@ -10,12 +10,12 @@ module.exports = {
resolve: {
alias: {
'react': path.resolve(__dirname, './node_modules/react'),
}
}
}
}
},
},
},
},
},
// These tests should run quickly / fail quickly,
// since we intentionally causing error states for testing
defaultCommandTimeout: 1000
}
defaultCommandTimeout: 1000,
}
2 changes: 1 addition & 1 deletion system-tests/project-fixtures/next/pages/_app.js
@@ -1,6 +1,6 @@
import '../styles/globals.css'

function MyApp({ Component, pageProps }) {
function MyApp ({ Component, pageProps }) {
return <Component {...pageProps} />
}

Expand Down
2 changes: 1 addition & 1 deletion system-tests/project-fixtures/next/pages/api/hello.js
@@ -1,5 +1,5 @@
// Next.js API route support: https://nextjs.org/docs/api-routes/introduction

export default function handler(req, res) {
export default function handler (req, res) {
res.status(200).json({ name: 'John Doe' })
}
4 changes: 2 additions & 2 deletions system-tests/project-fixtures/next/pages/index.cy.js
@@ -1,5 +1,5 @@
import { mount } from "cypress/react"
import Index from "./index.js"
import { mount } from 'cypress/react'
import Index from './index.js'

describe('<Index />', () => {
it('renders', () => {
Expand Down
2 changes: 1 addition & 1 deletion system-tests/project-fixtures/next/pages/index.js
Expand Up @@ -2,7 +2,7 @@ import Head from 'next/head'
import Image from 'next/image'
import styles from '../styles/Home.module.css'

export default function Home() {
export default function Home () {
return (
<div className={styles.container}>
<Head>
Expand Down
4 changes: 2 additions & 2 deletions system-tests/project-fixtures/next/pages/styles.cy.js
@@ -1,5 +1,5 @@
import { mount } from "cypress/react"
import Index from "./index.js"
import { mount } from 'cypress/react'
import Index from './index.js'

describe('<Index />', () => {
it('renders', () => {
Expand Down
Expand Up @@ -4,4 +4,4 @@ import Tutorial from './Tutorial.vue'
it('works', () => {
mount(Tutorial)
cy.contains('Nuxt')
})
})
Expand Up @@ -2,4 +2,4 @@ import { mount } from 'cypress/react'

import './backgroundColor.css'

Cypress.Commands.add('mount', mount)
Cypress.Commands.add('mount', mount)
6 changes: 3 additions & 3 deletions system-tests/project-fixtures/react/vite.config.js
@@ -1,4 +1,4 @@
const {defineConfig} = require('vite')
const { defineConfig } = require('vite')

module.exports = defineConfig({
resolve: {
Expand All @@ -7,5 +7,5 @@ module.exports = defineConfig({
'react-dom': require.resolve('react-dom'),
},
},
logLevel: 'silent'
})
logLevel: 'silent',
})
4 changes: 2 additions & 2 deletions system-tests/project-fixtures/react/webpack.config.js
@@ -1,4 +1,5 @@
const path = require('path')

/**
* @type {import('webpack').Configuration}
*/
Expand All @@ -24,6 +25,5 @@ module.exports = {
use: ['style-loader', 'css-loader'],
},
],
}
},
}

@@ -1,4 +1,4 @@
import { mount } from "cypress/svelte";
import "../../src/styles.css"
import { mount } from 'cypress/svelte'
import '../../src/styles.css'

Cypress.Commands.add("mount", mount);
Cypress.Commands.add('mount', mount)
2 changes: 1 addition & 1 deletion system-tests/project-fixtures/svelte/src/App.cy.js
Expand Up @@ -7,4 +7,4 @@ it('should render with style', () => {
cy.get('.very-red').should('have.css', 'color', 'rgb(255, 0, 0)')
// Verify local styles
cy.get('.very-blue').should('have.css', 'color', 'rgb(0, 0, 255)')
})
})
3 changes: 1 addition & 2 deletions system-tests/project-fixtures/svelte/src/errors.cy.js
@@ -1,7 +1,6 @@
import Errors from './Errors.svelte'

describe('Errors', () => {

it('error on mount', () => {
cy.mount(Errors, { props: { throwError: true } })
})
Expand All @@ -20,4 +19,4 @@ describe('Errors', () => {
cy.mount(Errors)
cy.get('element-that-does-not-exist')
})
})
})
10 changes: 5 additions & 5 deletions system-tests/project-fixtures/svelte/src/main.js
@@ -1,8 +1,8 @@
import App from "./App.svelte";
import "./styles.css";
import App from './App.svelte'
import './styles.css'

const app = new App({
target: document.getElementById("app"),
});
target: document.getElementById('app'),
})

export default app;
export default app

0 comments on commit bc7dbe2

Please sign in to comment.