Skip to content

Commit

Permalink
Small tweaks & improvements (#28253)
Browse files Browse the repository at this point in the history
* Ignore playwright generated files in git & prettier

Signed-off-by: Michael Telatynski <[email protected]>

* Correct .editorconfig

Signed-off-by: Michael Telatynski <[email protected]>

* Fix jest coverage errors

Signed-off-by: Michael Telatynski <[email protected]>

* Exclude scripts & type defs from coverage

Signed-off-by: Michael Telatynski <[email protected]>

---------

Signed-off-by: Michael Telatynski <[email protected]>
  • Loading branch information
t3chguy authored Oct 21, 2024
1 parent bdaad67 commit 7720197
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ trim_trailing_whitespace = true
indent_size = 4

[package.json]
indent_size = 2
indent_size = 4

[*.tsx.snap]
trim_trailing_whitespace = false
5 changes: 5 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,10 @@ package-lock.json

# Downloaded and already minified
res/jitsi_external_api.min.js

# This file is also machine-generated
/playwright/e2e/crypto/test_indexeddb_cryptostore_dump/dump.json
/playwright/test-results/
/playwright/html-report/
/playwright/logs/
/playwright/snapshots/
2 changes: 2 additions & 0 deletions jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ const config: Config = {
// getSessionLock is piped into a different JS context via stringification, and the coverage functionality is
// not available in that contest. So, turn off coverage instrumentation for it.
"!<rootDir>/src/utils/SessionLock.ts",
// Coverage chokes on type definition files
"!<rootDir>/src/**/*.d.ts",
],
coverageReporters: ["text-summary", "lcov"],
testResultsProcessor: "@casualbot/jest-sonar-reporter",
Expand Down
2 changes: 2 additions & 0 deletions playwright/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@
# Only commit snapshots from Linux
/snapshots/**/*.png
!/snapshots/**/*-linux.png
# This file is machine-generated
/e2e/crypto/test_indexeddb_cryptostore_dump/dump.json
10 changes: 9 additions & 1 deletion sonar-project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,13 @@ sonar.exclusions=__mocks__,docs,element.io,nginx
sonar.cpd.exclusions=src/i18n/strings/*.json
sonar.typescript.tsconfigPath=./tsconfig.json
sonar.javascript.lcov.reportPaths=coverage/lcov.info
sonar.coverage.exclusions=test/**/*,playwright/**/*,res/**/*,src/vector/modernizr.js,src/components/views/dialogs/devtools/**/*,src/utils/SessionLock.ts
sonar.coverage.exclusions=\
test/**/*,\
playwright/**/*,\
res/**/*,\
scripts/**/*,\
src/vector/modernizr.js,\
src/components/views/dialogs/devtools/**/*,\
src/utils/SessionLock.ts,\
src/**/*.d.ts
sonar.testExecutionReportPaths=coverage/jest-sonar-report.xml

0 comments on commit 7720197

Please sign in to comment.