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

[#104] Add tests for add-ons #112

Merged
merged 15 commits into from
Jul 18, 2022
Merged

Conversation

tyrro
Copy link
Contributor

@tyrro tyrro commented Jul 12, 2022

Closes #104

What happened 👀

  • Add tests for version control add-ons
  • Add tests for UI add-ons
  • Add Readme.md doc and JS Doc for the test utilities (Scenario and TestData)

Insight 📝

  • Removed Node 14 (keep only Node 16)
  • npm ci && lerna bootstrap --ci from the "root folder", so that it will run the npm ci inside the "packages/cli-tool" folder without NPM error (as there is no package.lock in this sub-folder)
  • fix an issue where TypeScript could not load IntelliSense (due to the test tsconfig file having references: ["path":".."]
  • Add ./test-app in the .gitignore (just in case of.. sometimes we CTR+C during a test)

A dest optional argument was added so we can specify another "destination" for the template to be generated in.
This prevents a conflict between ESlint configurations (as it inherits from parent folders) when the template is generated within the source code folder.

Proof Of Work 📹

Tests are passing

Local GitHub
image image
image image
image image

Failing test example

Test changed so that it would fail Result
image image
image
image
image

Documentation

Readme.md

image

JS Doc for test data JS Doc for Scenario
image image
image
image

@malparty malparty force-pushed the feature/96-add-tailwind-add-on branch from c0801c8 to ef1912d Compare July 12, 2022 03:49
Base automatically changed from feature/96-add-tailwind-add-on to development July 12, 2022 06:25
@tyrro tyrro force-pushed the feature/gh-104-tests-for-addons branch 2 times, most recently from 671059a to 81958bb Compare July 12, 2022 07:27
@malparty malparty force-pushed the feature/gh-104-tests-for-addons branch 14 times, most recently from 3eb3839 to 67bd969 Compare July 13, 2022 07:29
@malparty malparty added this to the 2.4.0 milestone Jul 13, 2022
@malparty malparty marked this pull request as ready for review July 13, 2022 07:34
Copy link
Contributor Author

@tyrro tyrro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

.gitignore Show resolved Hide resolved
packages/cli-tool/README.md Outdated Show resolved Hide resolved
packages/cli-tool/README.md Outdated Show resolved Hide resolved
@malparty malparty linked an issue Jul 15, 2022 that may be closed by this pull request
@carryall carryall removed this from the 2.4.0 milestone Jul 15, 2022
Copy link
Contributor

@hoangmirs hoangmirs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 💪

Comment on lines 31 to 32
working-directory: ./packages/cli-tool
run: npm run test
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As we're using npm workspaces, we can use this command to run tests for cli-tool

Suggested change
working-directory: ./packages/cli-tool
run: npm run test
run: npm run test --workspace=packages/cli-tool

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's a nice one!!! :)
thanks!
20c6bca

@malparty malparty force-pushed the feature/gh-104-tests-for-addons branch from 0f23510 to 96c1ea8 Compare July 18, 2022 08:04
@carryall carryall merged commit efc4188 into development Jul 18, 2022
@carryall carryall deleted the feature/gh-104-tests-for-addons branch July 18, 2022 09:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add test for the Bootstrap add on Add test for the version control add on
5 participants