Skip to content

Cypress component testing with razzle #1633

Answered by fivethreeo
drostano asked this question in Q&A
Discussion options

You must be logged in to vote
// webpack.config.js
const webpack = require('webpack');
const createConfig = require('razzle/config/createConfigAsync');
const loadRazzleConfig = require('razzle/config/loadRazzleConfig');
const setPorts = require('razzle-dev-utils/setPorts');

const configPromise = new Promise(function (resolve, reject) {

    loadRazzleConfig(webpack)
        .then(
            async ({ razzle, razzleOptions, webpackObject, plugins, paths }) => {
                verbose = razzleOptions.verbose;
                if (!verbose) {
                    process.removeAllListeners('warning');
                }
                const clientOnly = true;

                process.env.BUILD_TYPE = razzleOptions.build…

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@fivethreeo
Comment options

Answer selected by fivethreeo
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants