jest-clipboard
Advanced tools
Comparing version 0.0.9 to 0.0.10
@@ -16,3 +16,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
if (f) throw new TypeError("Generator is already executing."); | ||
while (_) try { | ||
while (g && (g = 0, op[0] && (_ = 0)), _) try { | ||
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; | ||
@@ -19,0 +19,0 @@ if (y = 0, t) op = [op[0] & 2, t.value]; |
@@ -16,3 +16,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
if (f) throw new TypeError("Generator is already executing."); | ||
while (_) try { | ||
while (g && (g = 0, op[0] && (_ = 0)), _) try { | ||
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; | ||
@@ -19,0 +19,0 @@ if (y = 0, t) op = [op[0] & 2, t.value]; |
{ | ||
"name": "jest-clipboard", | ||
"version": "0.0.9", | ||
"version": "0.0.10", | ||
"description": "jest-clipboard provides a easy way to test code against the clipboard API.", | ||
@@ -10,2 +10,4 @@ "main": "dist/clipboard.js", | ||
"test": "jest src/", | ||
"coverage": "npm run test -- --no-cache --collectCoverage --ci --watchAll=false --colors", | ||
"coveralls": "npm run coverage && coveralls < coverage/lcov.info", | ||
"lint": "eslint --fix src/" | ||
@@ -35,2 +37,3 @@ }, | ||
"@typescript-eslint/eslint-plugin": "^5.38.0", | ||
"coveralls": "^3.1.1", | ||
"eslint": "^8.23.1", | ||
@@ -37,0 +40,0 @@ "jest": "^29.0.3", |
# jest-clipboard | ||
jest-clipboard provides a easy way to test code against the [clipboard API](https://developer.mozilla.org/en-US/docs/Web/API/Clipboard_API). | ||
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/c5447940689d43dabf57dad7c4d031df)](https://www.codacy.com/gh/marabesi/jest-clipboard/dashboard?utm_source=github.com&utm_medium=referral&utm_content=marabesi/jest-clipboard&utm_campaign=Badge_Grade) | ||
[![Coverage Status](https://coveralls.io/repos/github/marabesi/jest-clipboard/badge.svg?branch=main)](https://coveralls.io/github/marabesi/jest-clipboard?branch=main) | ||
jest-clipboard provides a easy way to test code against the [clipboard API](https://developer.mozilla.org/en-US/docs/Web/API/Clipboard_API). | ||
## Usage | ||
@@ -39,5 +42,5 @@ | ||
## Limitation | ||
## Projects using jest-clipboard | ||
Currently the supported methods from the clipboard api are related to the text mode only. | ||
- [json-tool](https://github.com/marabesi/json-tool) uses jest-clipboard to setup a scenario for tests [have a look at this file](https://github.com/marabesi/json-tool/blob/5c21086602c2fa8160a4a5d2962455fddb0a39bc/src/__test__/Clipboard.test.tsx) | ||
@@ -44,0 +47,0 @@ ## Further reading |
Sorry, the diff of this file is not supported yet
21341
13
50
8