:no_entry: DEPRECATED :no_entry:
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.
cypress-log-to-terminal
Output messages to the terminal during headless Cypress runs.
Installation •
Usage •
Contributors •
License
Installation
- 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
}
Usage
describe('SignInPage', () => {
it('renders the page successfully', () => {
cy.visit('/sign-in')
cy.logToTerminal('This message will show up in the terminal', { andThis: 'too' })
})
})
Contributors
Thanks goes to these wonderful people (emoji key):
This project follows the all-contributors
specification. Contributions of any kind welcome!
License
MIT