mirror of
https://github.com/microsoft/frontend-bootcamp.git
synced 2026-01-26 14:56:42 +08:00
adding some instructions for step5 exercise and make sure jest doesn't do anything with docs
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
module.exports = {
|
||||
preset: 'ts-jest',
|
||||
testEnvironment: 'node'
|
||||
testEnvironment: 'node',
|
||||
testPathIgnorePatterns: ['/node_modules/', '/docs/']
|
||||
};
|
||||
|
||||
@@ -9,11 +9,17 @@ describe('TodoApp reducers', () => {
|
||||
|
||||
const keys = Object.keys(newState);
|
||||
|
||||
// make sure that adding an item would not result in the same instance of state
|
||||
// TODO: uncomment the below to get started
|
||||
/*
|
||||
|
||||
expect(newState).not.toBe(state);
|
||||
|
||||
expect(keys.length).toBe(1);
|
||||
expect(newState[keys[0]].label).toBe('item1');
|
||||
expect(newState[keys[0]].completed).toBeFalsy();
|
||||
*/
|
||||
});
|
||||
|
||||
// test remove, complete and clear
|
||||
// TODO: test remove, complete and clear
|
||||
});
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
For this step, we look at unit testing. Run
|
||||
<pre>npm test</pre>
|
||||
in the command line.
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
For this step, we look at unit testing. Run
|
||||
<pre>npm test</pre>
|
||||
in the command line.
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user