Skip to content

Commit 4c33dfd

Browse files
committed
Add a ct example with ampersand in directory name
This is related to #1232 [1]. [1] badeball/cypress-cucumber-preprocessor#1232
1 parent a38ca05 commit 4c33dfd

File tree

7 files changed

+17053
-0
lines changed

7 files changed

+17053
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
module.exports = {
2+
component: {
3+
devServer: {
4+
framework: "create-react-app",
5+
bundler: "webpack",
6+
},
7+
}
8+
};
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import App from "../../src/App";
2+
3+
it("should work", () => {
4+
cy.mount(<App />);
5+
6+
cy.contains("Hello world!").should("exist");
7+
})
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8">
5+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
6+
<meta name="viewport" content="width=device-width,initial-scale=1.0">
7+
<title>Components App</title>
8+
9+
</head>
10+
<body>
11+
12+
<div data-cy-root></div>
13+
</body>
14+
</html>
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import { mount } from 'cypress/react'
2+
3+
Cypress.Commands.add('mount', mount)

0 commit comments

Comments
 (0)