codeforbtv / baby-equipment-exchange

MIT License
0 stars 8 forks source link

NPM test scripts #10

Closed NathanWEdwards closed 9 months ago

NathanWEdwards commented 1 year ago

The project's main branch currently provides test, test:emulator, test1, and test1:emulator as NPM scripts.

npm run test runs tests with a Firebase instance. npm run test:emulator runs tests with the Firebase emulator suite.

(PR #3) intended to replace the content present in test and test:emulator with the content now present in test1 and test1:emulator.

To avoid issues with test runners, JSDOM Jest environment tests intended primarily for unit testing components and functions could be separated from browser tests and end-to-end tests with different NPM scripts (e.g. npm run test, npm run test:all, _npm run test:all_withemulator, npm run test:browser, _npm run test:browser_withemulator, npm run test:unit).