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

Fix/typescript tests #5375

Merged
merged 4 commits into from Dec 14, 2022
Merged

Conversation

DigitalBrainJS
Copy link
Collaborator

@DigitalBrainJS DigitalBrainJS commented Dec 14, 2022

  • 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 on lines +159 to +162
await spawn(`npm test --prefix ${pkgPath}`, [], {
shell : true,
stdio: 'pipe'
});

Check warning

Code scanning / CodeQL

Superfluous trailing arguments

Superfluous argument passed to [function spawn](1).
Comment on lines +176 to +179
await spawn(`npm test --prefix ${pkgPath}`, [], {
shell : true,
stdio: 'pipe'
});

Check warning

Code scanning / CodeQL

Superfluous trailing arguments

Superfluous argument passed to [function spawn](1).
});
.catch((error) => {
if (axios.isAxiosError(error)) {
const axiosError: axios.AxiosError = error;

Check notice

Code scanning / CodeQL

Unused variable, import, function or class

Unused variable axiosError.
test/module/typings/esm/index.ts Fixed Show fixed Hide fixed
refactor(test): refactor typescript tests;

// issue #5034

function getRequestConfig1(options: AxiosRequestConfig): AxiosRequestConfig {

Check notice

Code scanning / CodeQL

Unused variable, import, function or class

Unused function getRequestConfig1.
};
}

function getRequestConfig2(options: AxiosRequestConfig): AxiosRequestConfig {

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.

None yet

1 participant