Skip to content

Instantly share code, notes, and snippets.

@NickCis
Created February 3, 2019 22:54
Show Gist options
  • Save NickCis/5d4bec830c2b86dff08af8b2f18a5864 to your computer and use it in GitHub Desktop.
Save NickCis/5d4bec830c2b86dff08af8b2f18a5864 to your computer and use it in GitHub Desktop.
Example of jest test with custom arguments
const config = JSON.parse(process.env.__CONFIGURATION);
it('example', () => {
expect(config.custom).toEqual('command');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment