Skip to content

Commit 0f9fc89

Browse files
committed
move e2e tests
1 parent 73301b3 commit 0f9fc89

File tree

936 files changed

+57
-33
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

936 files changed

+57
-33
lines changed

__tests__/build-docs/simple-build-docs/pets.yaml

Lines changed: 0 additions & 1 deletion
This file was deleted.

__tests__/stats/stats-json/museum.yaml

Lines changed: 0 additions & 1 deletion
This file was deleted.

__tests__/stats/stats-markdown/museum.yaml

Lines changed: 0 additions & 1 deletion
This file was deleted.

__tests__/stats/stats-stylish/museum.yaml

Lines changed: 0 additions & 1 deletion
This file was deleted.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"pack:prepare": "./scripts/local-pack.sh",
2828
"respect:parser:generate": "pegjs --format es --output packages/respect-core/lib/modules/runtime-expressions/abnf-parser.js packages/respect-core/src/modules/runtime-expressions/abnf-parser.pegjs && cp packages/respect-core/lib/modules/runtime-expressions/abnf-parser.js packages/respect-core/src/modules/runtime-expressions/abnf-parser.js",
2929
"build-docs:copy-assets": "cp packages/cli/src/commands/build-docs/template.hbs packages/cli/lib/commands/build-docs/template.hbs ",
30-
"json-server": "json-server --watch __tests__/respect/local-json-server/fake-db.json --port 3000 --host 0.0.0.0"
30+
"json-server": "json-server --watch tests/e2e/__tests__/respect/local-json-server/fake-db.json --port 3000 --host 0.0.0.0"
3131
},
3232
"workspaces": [
3333
"packages/*"

packages/respect-core/src/modules/__tests__/flow-runner/context/create-runtime-expression-ctx.test.ts

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,20 @@ const testDescription = {
1010
arazzo: '1.0.1',
1111
info: { title: 'API', version: '1.0' },
1212
sourceDescriptions: [
13-
{ name: 'cats', type: 'openapi', url: '../../__tests__/respect/cat-fact-api/cats.yaml' },
14-
{ name: 'catsTwo', type: 'openapi', url: '../../__tests__/respect/cat-fact-api/cats.yaml' },
13+
{
14+
name: 'cats',
15+
type: 'openapi',
16+
url: '../../tests/e2e/__tests__/respect/cat-fact-api/cats.yaml',
17+
},
18+
{
19+
name: 'catsTwo',
20+
type: 'openapi',
21+
url: '../../tests/e2e/__tests__/respect/cat-fact-api/cats.yaml',
22+
},
1523
{
1624
name: 'externalWorkflow',
1725
type: 'arazzo',
18-
url: '../../__tests__/respect/cat-fact-api/auto-cat.arazzo.yaml',
26+
url: '../../tests/e2e/__tests__/respect/cat-fact-api/auto-cat.arazzo.yaml',
1927
},
2028
],
2129
workflows: [

packages/respect-core/src/modules/__tests__/flow-runner/context/create-test-context.test.ts

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,20 @@ describe('createTestContext', () => {
1414
arazzo: '1.0.1',
1515
info: { title: 'API', version: '1.0' },
1616
sourceDescriptions: [
17-
{ name: 'cats', type: 'openapi', url: '../../__tests__/respect/cat-fact-api/cats.yaml' },
18-
{ name: 'catsTwo', type: 'openapi', url: '../../__tests__/respect/cat-fact-api/cats.yaml' },
17+
{
18+
name: 'cats',
19+
type: 'openapi',
20+
url: '../../tests/e2e/__tests__/respect/cat-fact-api/cats.yaml',
21+
},
22+
{
23+
name: 'catsTwo',
24+
type: 'openapi',
25+
url: '../../tests/e2e/__tests__/respect/cat-fact-api/cats.yaml',
26+
},
1927
{
2028
name: 'externalWorkflow',
2129
type: 'arazzo',
22-
url: '../../__tests__/respect/cat-fact-api/auto-cat.arazzo.yaml',
30+
url: '../../tests/e2e/__tests__/respect/cat-fact-api/auto-cat.arazzo.yaml',
2331
},
2432
],
2533
workflows: [
@@ -527,12 +535,20 @@ describe('createTestContext', () => {
527535
secretsSet: {},
528536
severity: DEFAULT_SEVERITY_CONFIGURATION,
529537
sourceDescriptions: [
530-
{ name: 'cats', type: 'openapi', url: '../../__tests__/respect/cat-fact-api/cats.yaml' },
531-
{ name: 'catsTwo', type: 'openapi', url: '../../__tests__/respect/cat-fact-api/cats.yaml' },
538+
{
539+
name: 'cats',
540+
type: 'openapi',
541+
url: '../../tests/e2e/__tests__/respect/cat-fact-api/cats.yaml',
542+
},
543+
{
544+
name: 'catsTwo',
545+
type: 'openapi',
546+
url: '../../tests/e2e/__tests__/respect/cat-fact-api/cats.yaml',
547+
},
532548
{
533549
name: 'externalWorkflow',
534550
type: 'arazzo',
535-
url: '../../__tests__/respect/cat-fact-api/auto-cat.arazzo.yaml',
551+
url: '../../tests/e2e/__tests__/respect/cat-fact-api/auto-cat.arazzo.yaml',
536552
},
537553
],
538554
apiClient: expect.any(ApiFetcher),

__tests__/build-docs/build-docs-with-config-option/index.hbs renamed to tests/e2e/__tests__/build-docs/build-docs-with-config-option/index.hbs

File renamed without changes.

__tests__/build-docs/build-docs-with-config-option/nested/message-schema.yaml renamed to tests/e2e/__tests__/build-docs/build-docs-with-config-option/nested/message-schema.yaml

File renamed without changes.

__tests__/build-docs/build-docs-with-config-option/nested/openapi.yaml renamed to tests/e2e/__tests__/build-docs/build-docs-with-config-option/nested/openapi.yaml

File renamed without changes.

0 commit comments

Comments
 (0)