Created
October 19, 2021 02:00
-
-
Save crutchcorn/6d6128f8e54aaa357fe6c4d80314db15 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
test("Should fail", async (t) => { | |
const { cleanup, getByText, fireEvent } = await render([""], { | |
cwd: resolve(__dirname, "../example"), | |
}); | |
let outputStr; | |
outputStr = await waitFor(() => getByText("Please choose a generator")); | |
t.regex(outputStr, /Please choose a generator/); | |
cleanup(); | |
fireEvent.up(); | |
fireEvent.down(); | |
fireEvent.enter(); | |
outputStr = await waitFor(() => getByText("this is a test")); | |
t.regex(outputStr, /this is a test/); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment