mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-28 07:03:17 +08:00
fix cypress tests for erDiagram, add eslint-plugin-no-only-tests plugin because of this comment: https://github.com/mermaid-js/mermaid/pull/3647#issuecomment-1281163858
This commit is contained in:
parent
f6c167db84
commit
20751a6496
@ -21,7 +21,7 @@
|
||||
"plugin:markdown/recommended",
|
||||
"prettier"
|
||||
],
|
||||
"plugins": ["@typescript-eslint", "html", "jest", "jsdoc", "json"],
|
||||
"plugins": ["@typescript-eslint", "no-only-tests", "html", "jest", "jsdoc", "json"],
|
||||
"rules": {
|
||||
"no-console": "error",
|
||||
"no-prototype-builtins": "off",
|
||||
@ -48,7 +48,13 @@
|
||||
}
|
||||
],
|
||||
"json/*": ["error", "allowComments"],
|
||||
"no-empty": ["error", { "allowEmptyCatch": true }]
|
||||
"no-empty": [
|
||||
"error",
|
||||
{
|
||||
"allowEmptyCatch": true
|
||||
}
|
||||
],
|
||||
"no-only-tests/no-only-tests": "error"
|
||||
},
|
||||
"overrides": [
|
||||
{
|
||||
|
@ -167,7 +167,7 @@ describe('Entity Relationship Diagram', () => {
|
||||
cy.get('svg');
|
||||
});
|
||||
|
||||
it.only('should render entities with generic and array attributes', () => {
|
||||
it('should render entities with generic and array attributes', () => {
|
||||
renderGraph(
|
||||
`
|
||||
erDiagram
|
||||
|
@ -118,6 +118,7 @@
|
||||
"eslint-plugin-jsdoc": "39.3.6",
|
||||
"eslint-plugin-json": "3.1.0",
|
||||
"eslint-plugin-markdown": "3.0.0",
|
||||
"eslint-plugin-no-only-tests": "^3.0.0",
|
||||
"express": "4.18.2",
|
||||
"globby": "13.1.2",
|
||||
"husky": "8.0.1",
|
||||
|
7
pnpm-lock.yaml
generated
7
pnpm-lock.yaml
generated
@ -44,6 +44,7 @@ importers:
|
||||
eslint-plugin-jsdoc: 39.3.6
|
||||
eslint-plugin-json: 3.1.0
|
||||
eslint-plugin-markdown: 3.0.0
|
||||
eslint-plugin-no-only-tests: ^3.0.0
|
||||
express: 4.18.2
|
||||
fast-clone: 1.5.13
|
||||
globby: 13.1.2
|
||||
@ -125,6 +126,7 @@ importers:
|
||||
eslint-plugin-jsdoc: 39.3.6_eslint@8.25.0
|
||||
eslint-plugin-json: 3.1.0
|
||||
eslint-plugin-markdown: 3.0.0_eslint@8.25.0
|
||||
eslint-plugin-no-only-tests: 3.0.0
|
||||
express: 4.18.2
|
||||
globby: 13.1.2
|
||||
husky: 8.0.1
|
||||
@ -5715,6 +5717,11 @@ packages:
|
||||
- supports-color
|
||||
dev: true
|
||||
|
||||
/eslint-plugin-no-only-tests/3.0.0:
|
||||
resolution: {integrity: sha512-I0PeXMs1vu21ap45hey4HQCJRqpcoIvGcNTPJe+UhUm8TwjQ6//mCrDqF8q0WS6LgmRDwQ4ovQej0AQsAHb5yg==}
|
||||
engines: {node: '>=5.0.0'}
|
||||
dev: true
|
||||
|
||||
/eslint-scope/5.1.1:
|
||||
resolution: {integrity: sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==}
|
||||
engines: {node: '>=8.0.0'}
|
||||
|
Loading…
x
Reference in New Issue
Block a user