You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
● process.exit called with "1"
6 |
7 | beforeAll(async () => {
> 8 | Object.assign(ctx, await originalCreateTestContext())
| ^
9 | await ctx.app.server.start()
10 | })
11 |
at Object.fatal (node_modules/nexus/src/lib/process/index.ts:13:11)
at Object.getUsedPlugins (node_modules/nexus/src/lib/plugin/utils.ts:67:5)
at Object.createTestContext (node_modules/nexus/src/runtime/testing.ts:80:27)
at Object.<anonymous> (tests/__helpers.ts:8:24)
{"level":60,"time":1588951111799,"pid":17924,"hostname":"MacBook-Pro","path":["nexus"],"context":{"error":{"name":"TSError","message":"⨯ Unable to compile TypeScript:\n\u001b[91merror\u001b[0m\u001b[90m TS6059: \u001b[0mFile '/Users/etienne/Documents/nexus-plugin-security/tests/__app/graphql.ts' is not under 'rootDir' '/Users/etienne/Documents/nexus-plugin-security/src'. 'rootDir' is expected to contain all source files.\n"}},"event":"Failed to scan app for used plugins because there is a runtime error in the app","v":1}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello 👋
I'm new to nexus and trying to make my first public plugin for security purposes.
I'm using Jest and
nexus/testing
package to test my plugin.Have you any idea or examples for testing plugins easily ? Because I can't get things work 😢
Here is the current PR : https://github.com/liogate/nexus-plugin-security/pull/1/files
Thank you for you help,
And thanks for this amazing work ❤️
Click here to see terminal history + debug info
Beta Was this translation helpful? Give feedback.
All reactions