brightlightkim

  • 홈
  • 태그
  • 방명록

JOI 3

[Node.js] Joi Validation Error with Json Object

ValidationError: "action" is required If you see this kind of error when you typed it('should be a valid schema', async () => { await InputSchema.validateAsync({}) }) like this, it's because you typed your object in the { } this bracket. To solve this, you should remove { } bracket it('should be a valid schema', async () => { await InputSchema.validateAsync() }) Then, it will work

Node.js/Joi 2022.04.07

[Node.js] Joi Validation with the array

Joi.array().items() accepts another Joi schema to use against the array elements. So an array of strings is this easy: Joi.array().items(Joi.string()) Same for an array of objects; just pass an object schema to items(): Joi.array().items(Joi.object({ // Object schema }))

Node.js/Joi 2022.04.07

[JEST] Jest Functions with AWS

JEST TESTING mockdata Use Mockdata files to store fake data values for the testing jest.mock take away the functionality of it do nothing (we don't have to run everything) I don't want to send a notification of sns so did a mock Set a global variable of response jest.requireActual it uses all thd data uses actual function using only one function there to require it most of the times we do only m..

Node.js/Jest 2022.04.02
1
더보기
프로필사진

Algorithms and Data Structures Research Blog https://www.linkedin.com/in/taeyang-kim/ https://github.com/brightlightkim

  • 분류 전체보기
    • Algorithms and Data Structu..
      • Algorithms
      • Data Structures
      • Coding Practices
    • AI
    • AWS
      • EC2
      • ECS
      • CDK
      • X-Ray
      • Cloud Practitioner Certific..
      • Global Infrastructure and R..
      • Networking
      • Storage and Databases
      • Security
      • Monitoring and Analytics
      • Pricing and Support
      • Migration and Innovation
    • Rust
    • Node.js
      • Jest
      • Joi
      • Express
    • Serverless
    • Docker
    • Mongo
    • React
      • Next.js
    • Vue.js
      • Vuex
      • Nuxt
    • Coding Languages
      • JavaScript
      • TypeScript
      • Python
    • Internet of Things (IoT)
      • Arduino
      • Circuits
    • Basic Coding Info
      • Git
      • Monorepo
    • Testing
    • Bug
      • Git
      • AWS
      • JavaScript
      • Node
    • BYU-Broadcast
      • ScreenSharing
      • Bi-Weekly Training
      • Sprint
    • Security
    • Flutter
    • Android_App
      • Front-end
      • Back-end
      • RxJava
    • Web
      • CSS

Tag

node, serverless, ECS, ML, Git, VUE, BST, cdk, vuex, S3, AWS, AI, Node.js, lambda, Amazon, JEST, vue.js, EC2, Docker, javascript,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   2025/05   »
일 월 화 수 목 금 토
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31

방문자수Total

  • Today :
  • Yesterday :

Copyright © Kakao Corp. All rights reserved.

티스토리툴바