yarn run dev-server
yarn add babel-plugin-transform-object-rest-spread@6.23.0
- Spread allows you to do the below
const user = {
name: 'Max',
age: 22
};
console.log({
age: 27,
...user,
location: 'Melbourne'
})
yarn add @babel/plugin-proposal-class-properties --dev
- TESTING
-
To run testing put
yarn run test
-
To run tests with watch put
yarn test -- --watch
-
For testing we have installed the following packages
enzyme
enzyme-to-json
- We created
setupTests.js
,jes.config.json
- this was to automate the toJSON meaning we won't have to writetoJSON()
whenever we snapshot
-