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 = {
|
module.exports = {
|
||||||
preset: 'ts-jest',
|
preset: 'ts-jest',
|
||||||
testEnvironment: 'node'
|
testEnvironment: 'node',
|
||||||
|
testPathIgnorePatterns: ['/node_modules/', '/docs/']
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -9,11 +9,17 @@ describe('TodoApp reducers', () => {
|
|||||||
|
|
||||||
const keys = Object.keys(newState);
|
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(newState).not.toBe(state);
|
||||||
|
|
||||||
expect(keys.length).toBe(1);
|
expect(keys.length).toBe(1);
|
||||||
expect(newState[keys[0]].label).toBe('item1');
|
expect(newState[keys[0]].label).toBe('item1');
|
||||||
expect(newState[keys[0]].completed).toBeFalsy();
|
expect(newState[keys[0]].completed).toBeFalsy();
|
||||||
|
*/
|
||||||
});
|
});
|
||||||
|
|
||||||
// test remove, complete and clear
|
// TODO: test remove, complete and clear
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<body>
|
<body>
|
||||||
<div id="app"></div>
|
For this step, we look at unit testing. Run
|
||||||
|
<pre>npm test</pre>
|
||||||
|
in the command line.
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<body>
|
<body>
|
||||||
<div id="app"></div>
|
For this step, we look at unit testing. Run
|
||||||
|
<pre>npm test</pre>
|
||||||
|
in the command line.
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
Reference in New Issue
Block a user