1.0.1 • Published 1 year ago

@devoxa/cypress-log-to-terminal v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

: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.


Installation

  1. Install the package
yarn add --dev @devoxa/cypress-log-to-terminal
  1. Import the command in cypress/support/commands.ts:
import { addLogToTerminalCommand } from '@devoxa/cypress-log-to-terminal/command'
addLogToTerminalCommand()
  1. 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