Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jaehyun/mochatesting #14

Open
wants to merge 20 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
8d1e66c
created testing files, set up dependencies for testing
msmintyfresh Feb 14, 2022
65c3f98
merged changes
msmintyfresh Feb 15, 2022
f72ae1b
created configuration to transpile typescript in testing suite.
msmintyfresh Feb 15, 2022
d51a486
installed supertest
msmintyfresh Feb 15, 2022
7e235eb
Merge changes from dev
msmintyfresh Feb 15, 2022
cd55159
Add server implementation to testing branch
msmintyfresh Feb 15, 2022
0a8f64a
Add additional React unit tests for application components. Refactor …
msmintyfresh Feb 15, 2022
79c4d33
Add Redux to testing branch
msmintyfresh Feb 15, 2022
cf08acd
Add database tests. Create configuration for redux testing
msmintyfresh Feb 16, 2022
5838d6f
Merged changes in Redux and Database files from Origin/Dev
msmintyfresh Feb 16, 2022
eb91e68
Add additional configuration for Jest typescript support
msmintyfresh Feb 16, 2022
bb0b691
Add configuration for testing with Mocha
msmintyfresh Feb 16, 2022
8c94d43
Added unit tests for React Components
msmintyfresh Feb 16, 2022
e87d040
Add Redux testing. Streamlined code
msmintyfresh Feb 16, 2022
f53bca3
Merge updated redux and database logic into testing branch
msmintyfresh Feb 16, 2022
82ead77
Add additional database tests
msmintyfresh Feb 17, 2022
6785176
Add final application files to database branch
msmintyfresh Feb 17, 2022
a5fce6f
Merge application MVP into testing branch
msmintyfresh Feb 17, 2022
d127e1a
Change name, version in package.json
msmintyfresh Feb 17, 2022
596a7b3
Streamlined code base for merging into development branch
msmintyfresh Feb 17, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Server/src.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,5 @@ app.use((req, res) => res.status(404).send('Error: Page not found'));

app.listen(PORT, () => {
console.log(`Server is listening on port ${PORT}`);
});
});

File renamed without changes.
2 changes: 1 addition & 1 deletion dist/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!DOCTYPE html><html><head><meta charset="utf-8"><title>Webpack App</title><style>@import url('http://fonts.cdnfonts.com/css/pokemon-solid');</style><script defer src="runtime.2bfa86db663a739d2d55.js"></script><script defer src="vendors.d76d6e7b1adbed130fe3.js"></script><script defer src="main.745054f9a5d43a02650f.js"></script></head><body><div id="root"></div></body></html>
<!DOCTYPE html><html><head><meta charset="utf-8"><title>Webpack App</title><style>@import url('http://fonts.cdnfonts.com/css/pokemon-solid');</style><script defer src="runtime.2bfa86db663a739d2d55.js"></script><script defer src="vendors.d76d6e7b1adbed130fe3.js"></script><script defer src="main.745054f9a5d43a02650f.js"></script></head><body><div id="root"></div></body></html>
30 changes: 30 additions & 0 deletions jest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import{Config} from '@jest/types';
// const Config = require("@jest/types").Config;
// Sync object
const config: Config.InitialOptions = {
verbose: true,
testEnvironment: 'jest-environment-jsdom',

};

export default config;
// module.exports = config;

//note: async option
// export async (): Promise<Config.InitialOptions> => {
// return {
// verbose: true,
// };
// };

// /** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */
// module.exports = {
// preset: 'ts-jest',
// testEnvironment: 'jest-environment-jsdom',
// transform: {
// "node_modules/variables/.+\\.(j|t)sx?$": "ts-jest"
// },
// transformIgnorePatterns: [
// "node_modules/(?!variables/.*)"
// ]
// };
3 changes: 0 additions & 3 deletions my.test.js

This file was deleted.

Loading