Errors on line 59 on tests/user.test.ts
// note - name attribute takes string value and decorated with @attribute.string() in entitites/user.ts
// During Item Creation
UserManager.create(new User({
email: user_email,
name: 10, // typescript complaining ✅ nonetheless item gets created successfully ❌
username: "username1"
}));
// During Item Updation
{
set: {
name: true // typescript not complaining ❌ nonetheless items gets updated successfully ❌
}
}To reproduce:
bun install
docker compose up -d
bun testThis project was created using bun init in bun v1.2.20. Bun is a fast all-in-one JavaScript runtime.