Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 79 for Bahmutov (0.17 sec)

  1. npm/react/README.md

    [bahmutov/testing-react-example](https://github.com/bahmutov/testing-react-example) | Described in blog post [Test React Component with @cypress/react Example](https://dev.to/bahmutov/test-react-component-with-@cypress/react-example-4d99)
    [ejected-react-scripts-example](https://github.com/bahmutov/ejected-react-scripts-example) | Using component testing after ejecting `react-scripts`
    Plain Text
    - Registered: 2020-10-23 08:39
    - Last Modified: 2020-10-14 14:55
    - 29.1K bytes
    - Viewed (0)
  2. npm/react/cypress/component/advanced/context/README.md

        </ThemeContext.Provider>,
      )
      // confirm "mocked" value is passed to the Toolbar
    })
    ```
    
    ![Mocked context screenshot](images/mock-context.png)
    
    Plain Text
    - Registered: 2020-10-23 08:39
    - Last Modified: 2020-10-14 06:45
    - 820 bytes
    - Viewed (0)
  3. npm/react/package.json

        "@babel/plugin-syntax-dynamic-import": "7.8.3",
        "@babel/preset-env": "7.4.5",
        "@babel/preset-react": "7.0.0",
        "@babel/preset-typescript": "7.10.4",
        "@bahmutov/cy-api": "1.4.2",
        "@bahmutov/cy-rollup": "2.0.0",
        "@date-io/date-fns": "1",
        "@emotion/babel-preset-css-prop": "10.0.27",
        "@emotion/core": "10.0.22",
        "@material-ui/core": "4.9.5",
        "@material-ui/icons": "4.5.1",
    Json
    - Registered: 2020-10-23 08:39
    - Last Modified: 2020-10-14 14:55
    - 4.8K bytes
    - Viewed (0)
  4. npm/webpack-preprocessor/examples/react-app/README.md

    **Tip:** you can use [find-webpack](https://github.com/bahmutov/find-webpack) utility to find the Webpack config options provided by common tools: `react-scripts`, Vue CLI.
    
    ## Chunks and dynamic imports
    
    Plain Text
    - Registered: 2020-10-23 08:39
    - Last Modified: 2020-09-24 23:15
    - 1.4K bytes
    - Viewed (0)
  5. npm/react/lib/mount.ts

     * @function   mount
     * @param      {React.ReactElement}  jsx - component to mount
     * @param      {MountOptions}  [options] - options, like alias, styles
     * @see https://github.com/bahmutov/@cypress/react
     * @see https://glebbahmutov.com/blog/my-vision-for-component-tests/
     * @example
     ```
      import Hello from './hello.jsx'
      import {mount} from '@cypress/react'
      it('works', () => {
    Plain Text
    - Registered: 2020-10-23 08:39
    - Last Modified: 2020-10-14 14:55
    - 5.8K bytes
    - Viewed (0)
  6. npm/react/docs/recipes.md

      // IMPORTANT to return the config object
      // with the any changed environment variables
      return config
    }
    ```
    
    See example repo [bahmutov/try-cra-with-unit-test](https://github.com/bahmutov/try-cra-with-unit-test) or included example in the folder [examples/react-scripts](examples/react-scripts).
    
    **Tip:** `plugins/react-scripts` is just loading `plugins/cra-v3`.
    
    ## Next.js
    
    ```js
    Plain Text
    - Registered: 2020-10-23 08:39
    - Last Modified: 2020-10-14 06:45
    - 5.2K bytes
    - Viewed (0)
  7. npm/react/cypress/component/advanced/lazy-loaded/lazy-load-spec.js

    // NOTE: https://github.com/bahmutov/cypress-react-unit-test/issues/136
    // dynamic imports like this work in example projects, but not inside this repo
    // probably due to webpack plugins not set up correctly ☹️
    describe.skip('dynamic import', () => {
      it('loads', () => {
        // cy.wrap(import('./lazy-add'))
      })
    JavaScript
    - Registered: 2020-10-23 08:39
    - Last Modified: 2020-10-14 14:55
    - 322 bytes
    - Viewed (0)
  8. npm/react/examples/react-scripts-folder/cypress/plugins/index.js

    // load file preprocessor that comes with this plugin
    // https://github.com/bahmutov/cypress-react-unit-test#install
    const preprocessor = require('@cypress/react/plugins/react-scripts')
    
    module.exports = (on, config) => {
      preprocessor(on, config)
    
      // IMPORTANT to return the config object
      // with the any changed environment variables
      return config
    JavaScript
    - Registered: 2020-10-23 08:39
    - Last Modified: 2020-10-14 14:55
    - 359 bytes
    - Viewed (0)
  9. npm/react/cypress/component/basic/use-render/my-component-spec.js

    import React from 'react'
    import { mount } from '@cypress/react'
    import MyComponent from './my-component.jsx'
    
    // example from https://github.com/bahmutov/@cypress/react/issues/172
    it('is a test', () => {
      mount(<MyComponent name="some text" />)
      cy.contains('Hello').should('be.visible')
    JavaScript
    - Registered: 2020-10-23 08:39
    - Last Modified: 2020-10-14 06:45
    - 294 bytes
    - Viewed (0)
  10. npm/react/examples/visual-testing-with-happo/cypress/plugins/index.js

    // load file preprocessor that comes with this plugin
    // https://github.com/bahmutov/cypress-react-unit-test#install
    const preprocessor = require('@cypress/react/plugins/react-scripts')
    const happoTask = require('happo-cypress/task')
    
    module.exports = (on, config) => {
      on('task', happoTask)
      preprocessor(on, config)
    
      // IMPORTANT to return the config object
      // with the any changed environment variables
      return config
    JavaScript
    - Registered: 2020-10-23 08:39
    - Last Modified: 2020-10-14 14:55
    - 431 bytes
    - Viewed (0)
Back to top