Skip to content

Fix/typescript tests - #5375

Merged
DigitalBrainJS merged 4 commits into
axios:v1.xfrom
DigitalBrainJS:fix/typescript-tests
Dec 14, 2022
Merged

DigitalBrainJS merged 4 commits into
axios:v1.xfrom
DigitalBrainJS:fix/typescript-tests

Conversation

@DigitalBrainJS

@DigitalBrainJS DigitalBrainJS commented Dec 14, 2022 •

Copy link
Copy Markdown
Collaborator
  • Added release:no-npm script
  • Fixed index.d.ts types (mainly headers types)
  • Refactored typescripts tests
    • Moved to module's entry point tests
    • Used tsc --noEmit instead of dtslint

Comment thread test/module/test.js
Comment on lines +159 to +162
await remove(path.join(pkgPath, './node_modules'));
});

it('should pass types check', async function () {

Check warning

Code scanning / CodeQL

Superfluous trailing arguments

Superfluous argument passed to [function spawn](1).
Comment thread test/module/test.js Outdated
Comment on lines 176 to 179

Check warning

Code scanning / CodeQL

Superfluous trailing arguments

Superfluous argument passed to [function spawn](1).
transformResponse: (data, headers) => {
headers.has('foo');
}
});

Check notice

Code scanning / CodeQL

Unused variable, import, function or class

Unused variable axiosError.
Comment thread test/module/typings/esm/index.ts Fixed
refactor(test): refactor typescript tests;
Comment thread test/module/typings/esm/index.ts Outdated

Check notice

Code scanning / CodeQL

Unused variable, import, function or class

Unused function getRequestConfig1.
Comment thread test/module/typings/esm/index.ts Outdated

Check notice

Code scanning / CodeQL

Unused variable, import, function or class

Unused function getRequestConfig2.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants