Comments (10)
@mcollina ping png :)
from fastify-autoload.
Essentially vitest + autoload + ts are incompatible with each other and nobody found a way to make it work. It seems vitest is doing something interesting to support its own magic which is incompatible with our magic. PRs are absolutely welcome.
from fastify-autoload.
Challenge accepted.
from fastify-autoload.
@mcollina So... this was pretty simple..
➜ fastify-autoload git:(master) npx npm-check-updates -u --enginesNode
Upgrading /Users/user/Code/fastify-autoload/package.json
[====================] 25/25 100%
@fastify/pre-commit ^2.0.2 → ^2.1.0
@fastify/url-data ^5.0.0 → ^5.4.0
@swc-node/register ^1.5.1 → ^1.8.0
@swc/core ^1.2.129 → ^1.4.2
@types/jest ^29.0.0 → ^29.5.12
@types/node ^20.1.0 → ^20.11.24
@types/tap ^15.0.5 → ^15.0.11
esbuild ^0.19.2 → ^0.20.1
esbuild-register ^3.4.1 → ^3.5.0
fastify ^4.0.0-rc.2 → ^4.26.2
fastify-plugin ^4.0.0 → ^4.5.1
jest ^28.1.3 → ^29.7.0
standard ^17.0.0 → ^17.1.0
tap ^16.0.0 → ^18.7.0
ts-jest ^28.0.7 → ^29.1.2
ts-node ^10.4.0 → ^10.9.2
tsd ^0.29.0 → ^0.30.7
tsm ^2.2.1 → ^2.3.0
tsx ^3.7.1 → ^4.7.1
typescript ^5.0.2 → ^5.3.3
vite ^5.0.0 → ^5.1.4
vitest ^0.34.1 → ^1.3.1
I then attached my code locally, and it ran:
So, do you want to accept this many changes, or do you want me to pair it down to the minimum needed to pass both unit testing here and in my script?
from fastify-autoload.
Please send the PR :)
from fastify-autoload.
Roger. Let me get the unit tests working. Some of the unit test functionality has "warnings" due to the impending version 5 of Fastify.
from fastify-autoload.
Related Issues (20)
- babel-node + typescript. Error only with autoloads : throw new Error(@fastify/autoload cannot import plugin at '${file}'. To fix this error compile TypeScript to JavaScript or use 'ts-node' to run your app.) HOT 5
- Add matchPattern to load only some specific paths HOT 2
- dirNameRoutePrefix option doesn't work when set to false HOT 2
- Mock plugins with autoload HOT 2
- Property '<property>' does not exist on type FastifyInstance when loading TS plugin HOT 1
- Two fastify instances, two `indexPattern` that seems been ignored HOT 2
- Autoload cannot read absolute paths from tsconfig throws error - "Error","message":"Cannot find module '@/Model/User/UserVerifyService' HOT 2
- Node 20 auto-loader not able to transpile TS to JS when using ts-node/esm HOT 24
- Params validation HOT 7
- Not able to have top-level await in a ts ESM file? HOT 3
- Fastify Autoload does not work with Bun.js or deno HOT 2
- Allow concatenation of child plugin prefixes when encapsulate is set to false HOT 2
- setNotFoundHandler is not encapsulated when called inside autohooks.js HOT 3
- autoloader breaks node --test --experimental-test-coverage HOT 2
- Cannot use with esm only HOT 1
- ts-node error with plugins using custom instance field via declaration merging HOT 1
- fileNameRoutePrefix HOT 3
- autoConfig dependencies not respected HOT 1
- Achieve 100% test coverage HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fastify-autoload.