Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 86 for Bahmutov (0.39 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: 2021-01-15 08:39
    - Last Modified: 2020-12-20 20:02
    - 28.8K bytes
    - Viewed (0)
  2. 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: 2021-01-15 08:39
    - Last Modified: 2021-01-05 05:46
    - 4.4K bytes
    - Viewed (0)
  3. npm/react/src/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: 2021-01-15 08:39
    - Last Modified: 2020-11-23 18:59
    - 5.8K bytes
    - Viewed (0)
  4. npm/create-cypress-tests/__snapshots__/rollup.test.ts.js

    exports['rollup-file install template correctly generates plugins config when webpack config path is missing 1'] = `
    const rollupPreprocessor = require("@bahmutov/cy-rollup");
    
    const something = require("something");
    
    module.exports = (on, config) => {
      on('file:preprocessor', rollupPreprocessor({
        // TODO replace with valid rollup config path
        configFile: 'rollup.config.js'
      }));
    
      require('@cypress/code-coverage/task')(on, config);
    
    JavaScript
    - Registered: 2020-12-04 08:39
    - Last Modified: 2020-11-30 18:20
    - 981 bytes
    - Viewed (0)
  5. 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: 2021-01-15 08:39
    - Last Modified: 2020-10-14 06:45
    - 820 bytes
    - Viewed (0)
  6. npm/react/examples/using-babel/cypress/plugins/index.js

    // let's bundle spec files and the components they include using
    // the same bundling settings as the project by loading .babelrc
    // https://github.com/bahmutov/cypress-react-unit-test#install
    const preprocessor = require('@cypress/react/plugins/babelrc')
    
    module.exports = (on, config) => {
      preprocessor(on, config)
    
      // IMPORTANT to return the config object
      // with the any changed environment variables
      return config
    JavaScript
    - Registered: 2021-01-15 08:39
    - Last Modified: 2020-10-14 14:55
    - 429 bytes
    - Viewed (0)
  7. npm/react/examples/visual-sudoku/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 { addMatchImageSnapshotPlugin } = require('cypress-image-snapshot/plugin')
    
    module.exports = (on, config) => {
      addMatchImageSnapshotPlugin(on, config)
      preprocessor(on, config)
      // IMPORTANT to return the config object
      // with the any changed environment variables
    JavaScript
    - Registered: 2021-01-15 08:39
    - Last Modified: 2020-10-14 14:55
    - 481 bytes
    - Viewed (0)
  8. .github/workflows/test.yml

            uses: actions/checkout@v2
          - name: Install Node.js
            uses: actions/setup-node@v2-beta
            with:
              node-version: 15
          - name: Install dependencies
            uses: bahmutov/npm-install@v1
          - name: Run tests
            run: yarn test
      short:
        runs-on: ubuntu-latest
        strategy:
          matrix:
            node-version:
              - 14
              - 12
              - 10
    Plain Text
    - Registered: 2021-01-18 23:33
    - Last Modified: 2020-11-08 12:18
    - 1.4K bytes
    - Viewed (0)
  9. 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-11-20 08:39
    - Last Modified: 2020-10-14 14:55
    - 5.8K bytes
    - Viewed (0)
  10. 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: 2021-01-15 08:39
    - Last Modified: 2020-10-14 06:45
    - 5.2K bytes
    - Viewed (0)
Back to top