Update ava version and related dependencies#96
Conversation
| 'no-switch-case-fall-through': true, | ||
| 'no-unsafe-finally': true, | ||
| 'no-unused-expression': true, | ||
| 'no-use-before-declare': true, |
There was a problem hiding this comment.
This was deleted as it no longer exists with the new tslint package version.
|
CI isn't passing @gaestradaaedo |
| "sources": [ | ||
| "src/*.ts", | ||
| "src/**/*.ts" | ||
| "!dist/test/**/*.test.js", |
There was a problem hiding this comment.
I'm very confused by this update. Doesn't this say that it's only testing files that don't satisfy these globs? I would expect this to mean that no tests are run at all.
| ], | ||
| "concurrency": 5, | ||
| "verbose": true, | ||
| "timeout": "10000", |
There was a problem hiding this comment.
this option no longer supported in ava?
| return new Promise( | ||
| // tslint:disable-next-line:no-any (typed by overload signatures) | ||
| resolve => setTimeout(() => resolve(value), delayTime), | ||
| (resolve) => setTimeout(() => resolve(value), delayTime), |
There was a problem hiding this comment.
personally hate this lint change, but if you feel strongly this is the right strategy I don't really care as long as it's consistent and is handled automatically with the --fix operation
| return await fn(...args); | ||
| } catch (err) { | ||
| if (retryOpts.isRetryable && !retryOpts.isRetryable(err)) { | ||
| if (err instanceof Error && (!retryOpts.isRetryable || retryOpts.isRetryable(err))) { |
There was a problem hiding this comment.
i would cast error or expand the type on line 30 rather than adding this to the check. As written in your update this will ignore the retryOpts if the function throws a non-error which i don't think is desirable
The main purpose of this PR is to update the
avalibrary dependency and added the@ava/typescriptfor compatibility. Theava's configuration in thepackage.jsonfile was updated to adhere to the required structure from the package.It also updates/adds all the related/affected libraries for testing, such as
nyc,prettierandsource-map-support.Additionally, it updates the
typescriptandtslintpackages.All the tests run successfully with the command
npm run testFixand the changes made in the files where done automatically byprettier.