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

chore: drop useless wrapper tests #85

Merged
merged 4 commits into from
Nov 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
18 changes: 11 additions & 7 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,23 @@
// NOTICE: When a github "squash and merge" is performed, github add the PR link in the commit
// message using the format ` (#<PR_ID>)`. Travis provide the target branch of the build,
// so authorizing 4+5 = 9 characters more on master for the max header length should work
// message using the format ` (#<PR_ID>)`. Github provide the target branch of the build,
// so authorizing 4+5 = 9 characters more on main for the max header length should work
// until we reach PR #99999.

let maxHeaderLength = 100;
let maxLineLength = 100;

const prExtrasChars = 9;

const isCommitOnMaster = process.env.TRAVIS_BRANCH && process.env.TRAVIS_BRANCH === 'master';
const isPushEvent = process.env.GITHUB_EVENT_NAME === 'push';

if (isCommitOnMaster) {
maxHeaderLength += prExtrasChars;
if (isPushEvent) {
maxLineLength += prExtrasChars;
}

module.exports = {
extends: ['@commitlint/config-conventional'],
rules: { 'header-max-length': [2, 'always', maxHeaderLength] },
rules: {
'header-max-length': [1, 'always', maxLineLength],
'body-max-line-length': [1, 'always', maxLineLength],
'footer-max-line-length': [1, 'always', maxLineLength],
},
};
7 changes: 1 addition & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"injection"
],
"author": "Sliman Medini <[email protected]>",
"license": "ISC",
"license": "GPL3",
"bugs": {
"url": "https://github.com/ForestAdmin/context/issues"
},
Expand All @@ -39,19 +39,14 @@
"@semantic-release/github": "^7.2.0",
"@semantic-release/npm": "9.0.1",
"@semantic-release/release-notes-generator": "^9.0.2",
"bull": "4.10.4",
"eslint": "8.31.0",
"eslint-config-airbnb-base": "15.0.0",
"eslint-plugin-import": "2.26.0",
"eslint-plugin-jest": "27.2.1",
"eslint-plugin-sonarjs": "0.18.0",
"express": "4.21.1",
"jest": "29.4.3",
"node-fetch": "2.6.7",
"pg": "^8.5.1",
"semantic-release": "19.0.3",
"semantic-release-slack-bot": "3.5.2",
"sequelize": "6.29.0",
"simple-git": "3.17.0"
},
"resolutions": {
Expand Down
8 changes: 0 additions & 8 deletions test/examples/web-app/index.js

This file was deleted.

22 changes: 0 additions & 22 deletions test/examples/web-app/make-commands.js

This file was deleted.

5 changes: 0 additions & 5 deletions test/examples/web-app/make-express-add-http-endpoint.js

This file was deleted.

4 changes: 0 additions & 4 deletions test/examples/web-app/make-express-app.js

This file was deleted.

17 changes: 0 additions & 17 deletions test/examples/web-app/make-express-middlewares.js

This file was deleted.

18 changes: 0 additions & 18 deletions test/examples/web-app/plan.js

This file was deleted.

26 changes: 0 additions & 26 deletions test/examples/wrappers/bull.test.js

This file was deleted.

33 changes: 0 additions & 33 deletions test/examples/wrappers/express/express.test.js

This file was deleted.

This file was deleted.

4 changes: 0 additions & 4 deletions test/examples/wrappers/express/plan/make-adapters.js

This file was deleted.

3 changes: 0 additions & 3 deletions test/examples/wrappers/express/plan/make-business.js

This file was deleted.

22 changes: 0 additions & 22 deletions test/examples/wrappers/express/plan/make-commands.js

This file was deleted.

10 changes: 0 additions & 10 deletions test/examples/wrappers/express/plan/make-express.js

This file was deleted.

4 changes: 0 additions & 4 deletions test/examples/wrappers/express/plan/make-libs.js

This file was deleted.

This file was deleted.

This file was deleted.

23 changes: 0 additions & 23 deletions test/examples/wrappers/sequelize.test.js

This file was deleted.

Loading
Loading