Skip to content

Commit

Permalink
Upgrade testing library
Browse files Browse the repository at this point in the history
  • Loading branch information
crutchcorn committed Nov 26, 2021
1 parent 2ae322f commit e13a7a3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 55 deletions.
55 changes: 3 additions & 52 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -31,7 +31,7 @@
"prepare": "husky install"
},
"devDependencies": {
"cli-testing-library": "1.0.0-alpha.7",
"cli-testing-library": "^1.0.0-alpha.9",
"eslint": "^8.3.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-prettier": "^4.0.0",
Expand Down
4 changes: 2 additions & 2 deletions tests/input-processing.spec.js
Expand Up @@ -39,13 +39,13 @@ test("should display inquirer prompts", async () => {
});

test("Should handle generator prompt", async () => {
const { findByText, cleanup, fireEvent } = await renderPlop([""], {
const { findByText, clear, fireEvent } = await renderPlop([""], {
cwd: resolve(__dirname, "./examples/javascript"),
});

await findByText("Please choose a generator");

cleanup();
clear();
fireEvent.up();
fireEvent.down();
fireEvent.enter();
Expand Down

0 comments on commit e13a7a3

Please sign in to comment.