Skip to content

Commit e4f82c0

Browse files
committed
Migrate ts-codegen to @hey-api/openapi-ts
1 parent 3fcbe30 commit e4f82c0

180 files changed

Lines changed: 811 additions & 3365 deletions

File tree

Some content is hidden

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

.eslintrc.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,6 @@ module.exports = {
2020
parser: '@typescript-eslint/parser',
2121
plugins: ['@typescript-eslint'],
2222
extends: ['plugin:@typescript-eslint/recommended'],
23-
overrides: [
24-
{
25-
// 3) Now we enable eslint-plugin-testing-library rules or preset only for matching testing files!
26-
files: ['**/?(*.)+(spec).ts?(x)'],
27-
extends: ['plugin:testing-library/react'],
28-
},
29-
],
3023
rules: {
3124
'react/prop-types': 'off',
3225
'@typescript-eslint/no-unused-vars': 'error',
@@ -110,7 +103,6 @@ module.exports = {
110103
'import/no-unresolved': 'off',
111104
'import/extensions': 'off',
112105
'no-console': 'error',
113-
'testing-library/prefer-user-event': 'error',
114106
'@typescript-eslint/no-misused-promises': 'off',
115107
'@typescript-eslint/no-floating-promises': 'off',
116108
'@typescript-eslint/no-unsafe-enum-comparison': 'off',

libs/cypress/e2e/fleets/createFleet.cy.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,15 @@ describe('Create fleet form', () => {
3939

4040
createFleetWizardPage.newFleetTargetReferenceField.type('main');
4141
createFleetWizardPage.newFleetRepositoryPathField.type('/file-path');
42-
createFleetWizardPage.nextFleetWizardButton.should('be.enabled').click();
42+
43+
// Fleet spec step
44+
createFleetWizardPage.nextFleetWizardButton.should('have.text', 'Next').should('be.enabled').click();
4345

4446
// Updates step
45-
createFleetWizardPage.nextFleetWizardButton.should('be.enabled').click();
47+
createFleetWizardPage.nextFleetWizardButton.should('have.text', 'Next').should('be.enabled').click();
4648

4749
// Review and create step
48-
createFleetWizardPage.createFleetFormSubmitButton.should('be.enabled').click();
50+
createFleetWizardPage.createFleetFormSubmitButton.should('have.text', 'Create fleet').should('be.enabled').click();
4951

5052
cy.wait('@create-new-fleet').then(({ request }) => {
5153
expect(request.body, 'Create fleet request').to.nested.include({

libs/cypress/fixtures/repositories/initialRepositories.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const repoList: Repository[] = [
1111
},
1212
spec: {
1313
url: 'https://github.com/flightctl/flightctl-demos',
14-
type: RepoSpecType.GIT,
14+
type: RepoSpecType.Git,
1515
},
1616
status: {
1717
conditions: [

libs/types/models/AbsolutePath.ts

Lines changed: 0 additions & 14 deletions
This file was deleted.

libs/types/models/ApplicationContent.ts

Lines changed: 0 additions & 8 deletions
This file was deleted.

libs/types/models/ApplicationEnvVars.ts

Lines changed: 0 additions & 11 deletions
This file was deleted.

libs/types/models/ApplicationStatusType.ts

Lines changed: 0 additions & 15 deletions
This file was deleted.

libs/types/models/ApplicationVolume.ts

Lines changed: 0 additions & 12 deletions
This file was deleted.

libs/types/models/ApplicationVolumeProviderSpec.ts

Lines changed: 0 additions & 12 deletions
This file was deleted.

libs/types/models/ApplicationVolumeStatus.ts

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)