AztecGameLab / AztecGameLaboratory

Premier web application with chat rooms, polls, and team game development collaboration
4 stars 0 forks source link

Implementing Sass & Enzyme #17

Closed GGonryun closed 5 years ago

GGonryun commented 5 years ago

Problem

Enzyme & Sass CSS is currently not implemented

Solution

yarn add enzyme-adapter-react-16 yarn add enzyme yarn add node-sass

Other changes (e.g. bug fixes, UI tweaks, small refactors)

Deploy Notes

Created a file called "enzyme.js" which configures the adapter for Enzyme & React.

New scripts:

prepared enzyme & scss: Tutorials: https://scotch.io/tutorials/testing-react-components-with-enzyme-and-jest

https://medium.com/selleo/testing-react-components-best-practices-2f77ac302d12

Jest API: https://jestjs.io/docs/en/api#beforeeachfn-timeout Enzyme API: https://airbnb.io/enzyme/docs/api/