Skip to content
This repository has been archived by the owner on Mar 5, 2022. It is now read-only.

webpack 5 and cypress-react-unit-test image assets #532

Closed
glomotion opened this issue Nov 12, 2020 · 0 comments
Closed

webpack 5 and cypress-react-unit-test image assets #532

glomotion opened this issue Nov 12, 2020 · 0 comments

Comments

@glomotion
Copy link

For some reason, even inlined assets don't get rendered.

Screen Shot 2020-11-12 at 12 35 26 pm

// ./webpack.config.js

...
{
    test: /\.(png|jpe?g|gif|svg|eot|ttf|woff|woff2)$/i,
    type: 'asset', // sets assets to be automatically resourced. cypress fails when i make this 'asset/resource'. Some error about automatic public path. :(
},

deps:

"cypress": "^5.5.0",
    "cypress-react-unit-test": "^4.16.0",
    "typescript": "^4.0.5",
    "webpack": "^5.1.3",
    "webpack-cli": "4.2.0",
    "webpack-dev-server": "^3.11.0"
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant