-
Notifications
You must be signed in to change notification settings - Fork 44
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
test: Refactor test set up for readability #810
test: Refactor test set up for readability #810
Conversation
rollup.test.config.js
Outdated
@@ -10,7 +10,7 @@ const extensions = ['.js', '.ts']; | |||
|
|||
const builds = { | |||
main: { | |||
input: 'test/src/tests-main.js', | |||
input: 'test/src/__test.index.ts', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why the double underscore? It's not python, lol.
@@ -8,7 +8,7 @@ import json from '@rollup/plugin-json'; | |||
|
|||
export default [ | |||
{ | |||
input: 'test/src/tests-main.js', | |||
input: 'test/src/_index.ts', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it single or double?
Co-authored-by: Alex S <[email protected]>
@@ -8,7 +8,7 @@ import json from '@rollup/plugin-json'; | |||
|
|||
export default [ | |||
{ | |||
input: 'test/src/tests-main.js', | |||
input: 'test/src/_test.index.ts', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As per our conversation this morning, I thought we were just going to call this index.ts
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh I thought we were just removing the underscore. If the idea is to eventually rename things to module.spec.ts
like you have for vault.spec.ts
, then once we have things higher alphabetically, it's better to keep it the underscore to keep it at the top of the folder.
Co-authored-by: Alex S <[email protected]>
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
f842ef5
into
ci/SQDSDKS-5780-cross-browser-testing
Instructions
development
Summary
tests-main.js
,config.js
,utils
are all confusing names inside of a test folder. In order to make tests a bit more readable, these files have been reorganized and renamed.Testing Plan
Reference Issue (For mParticle employees only. Ignore if you are an outside contributor)