This package has been archived and is no longer maintained. While we will not provide any updates or support, the code is still available for reference. If you need this package for your project, we encourage you to fork & republish the code following the license terms.
Installation • Usage • Contributors • License
- Install the package
yarn add --dev @devoxa/cypress-log-to-terminal
- Import the command in
cypress/support/commands.ts
:
import { addLogToTerminalCommand } from '@devoxa/cypress-log-to-terminal/command'
addLogToTerminalCommand()
- Import the plugin in
cypress/plugins/index.ts
:
import { addLogToTerminalPlugin } from '@devoxa/cypress-log-to-terminal/plugin'
export default (on: Cypress.PluginEvents, config: Cypress.PluginConfigOptions) => {
addLogToTerminalPlugin(on, config)
return config
}
describe('SignInPage', () => {
it('renders the page successfully', () => {
cy.visit('/sign-in')
cy.logToTerminal('This message will show up in the terminal', { andThis: 'too' })
})
})
Thanks goes to these wonderful people (emoji key):
David Reeß 💻 📖 |
This project follows the all-contributors specification. Contributions of any kind welcome!
MIT