-
Notifications
You must be signed in to change notification settings - Fork 10.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
__PATH_PREFIX__ for testing with enzyme/jest #13115
Comments
Error Error
Dangerfileimport { danger, markdown } from "danger"
const getMessage = (username: string) => `\
@${username} We noticed that the body of this issue is blank.
Please fill in this field with more information to help the \
maintainers resolve your issue.\
`
export const emptybody = () => {
const {
user: { login: username },
body,
} = danger.github.issue as any
if (body.trim().length === 0) {
markdown(getMessage(username))
}
}
export default async () => {
emptybody()
}
--- Generated by 🚫 dangerJS |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Related to #1378
I'm still seeing this in a enzyme/jest test:
gatsby-config.js
test
The docs on pathPrefix don't explicitly mention what to do during testing
Maybe here it would be better to do something like
Probably a better solution would be to inject the global if
NODE_ENV
istest
?The text was updated successfully, but these errors were encountered: