Skip to content

Instantly share code, notes, and snippets.

@scarf005
Last active August 21, 2023 05:55
Show Gist options
  • Save scarf005/220e6796f8445a04100e26afe8e3879f to your computer and use it in GitHub Desktop.
Save scarf005/220e6796f8445a04100e26afe8e3879f to your computer and use it in GitHub Desktop.

오픈소스 기여

Deno는 Node.js를 만든 Ryan Dhal의 차세대 자바스크립트/타입스크립트 런타임입니다.

Flat 설정 파일 기능 구현

기존 변경 후
"lint": {
  "files": {
    "exclude": ["gen.ts"]
  }
}
  "lint": {
    "exclude": ["gen.ts"]
  }

설정 파일에 전역 exclude 필드 추가 구현

import { partitionEntries } from "https://deno.land/std@0.187.0/collections/partition_entries.ts";
import { assertEquals } from "https://deno.land/std@0.187.0/testing/asserts.ts";

const menu = {
  Salad: 11,
  Soup: 8,
  Pasta: 13,
} as const;
const myOptions = partitionEntries(
  menu,
  ([item, price]) => item !== "Pasta" && price < 10
);

assertEquals(myOptions, [{ Soup: 8 }, { Salad: 11, Pasta: 13 }]);

Vitest vite 테스팅 프레임워크

  • jest를 대체하는 vite 설정 파일을 활용하는 테스팅 프레임워크입니다.
기능 구현 이전 기능 구현 이후
변경전 변경후

UI 환경에서 테스트시 결과 패널에 diff 표시

기능 구현 이전 기능 구현 이후
변경전 변경후

기타 기여

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment