New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

bs-dom-testing-library

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bs-dom-testing-library - npm Package Compare versions

Comparing version 0.3.0 to 0.4.0

src/DomTestingLibrary__FireEvent.rei

2

bsconfig.json

@@ -28,5 +28,5 @@ {

"bs-dev-dependencies": [
"bs-jest",
"@glennsl/bs-jest",
"bs-webapi"
]
}
## Change Log
### [v0.4.0](https://github.com/wyze/bs-dom-testing-library/releases/tag/v0.4.0) (2019-04-05)
* Add the rest of the events and change method signature ([@wyze](https://github.com/wyze) in [0814ce1](https://github.com/wyze/bs-dom-testing-library/commit/0814ce1))
* Change tests to use new render function ([@wyze](https://github.com/wyze) in [feeb021](https://github.com/wyze/bs-dom-testing-library/commit/feeb021))
* Meta file updates ([@wyze](https://github.com/wyze) in [3ab333b](https://github.com/wyze/bs-dom-testing-library/commit/3ab333b))
* Upgrade dependencies ([@wyze](https://github.com/wyze) in [bcded3e](https://github.com/wyze/bs-dom-testing-library/commit/bcded3e))
### [v0.3.0](https://github.com/wyze/bs-dom-testing-library/releases/tag/v0.3.0) (2018-10-10)

@@ -4,0 +11,0 @@

{
"name": "bs-dom-testing-library",
"version": "0.3.0",
"version": "0.4.0",
"description": "BuckleScript bindings for dom-testing-library.",

@@ -23,6 +23,7 @@ "repository": "wyze/bs-dom-testing-library",

"jest": "jest",
"postversion": "github-release",
"prebuild": "yarn clean",
"pretest": "yarn build",
"test": "yarn jest",
"version": "write-changelog"
"version": "changelog"
},

@@ -34,12 +35,13 @@ "keywords": [

"dependencies": {
"dom-testing-library": "^3.8.1"
"dom-testing-library": "^3.19.0"
},
"devDependencies": {
"bs-jest": "^0.3.2",
"bs-platform": "^4.0.6",
"bs-webapi": "^0.12.2",
"npm-run-all": "^4.1.3",
"rimraf": "^2.6.2",
"write-changelog": "^1.2.0"
"@glennsl/bs-jest": "^0.4.8",
"@wyze/changelog": "^1.0.0",
"@wyze/github-release": "^1.0.0",
"bs-platform": "^5.0.0",
"bs-webapi": "^0.13.6",
"npm-run-all": "^4.1.5",
"rimraf": "^2.6.3"
}
}

@@ -1,6 +0,3 @@

# bs-dom-testing-library
# bs-dom-testing-library · [![Build Status][circleci-image]][circleci-url] [![npm][npm-image]][npm-url] [![Coveralls][coveralls-image]][coveralls-url]
[![Build Status][travis-image]][travis-url]
[![npm][npm-image]][npm-url]
> [BuckleScript](//github.com/BuckleScript/bucklescript) bindings for [dom-testing-library](//github.com/kentcdodds/dom-testing-library).

@@ -33,39 +30,18 @@

```ocaml
/* A_test.re */
/* Header_test.re */
open Jest;
open Expect;
open Webapi.Dom;
open Webapi.Dom.Element;
[@bs.new]
external domParser : unit => parser = "DOMParser";
test("header exists", () => {
let div = Document.createElement("div", document);
[@bs.send.pipe : parser]
external parseFromString : ( string, [@bs.as "text/html"] _) => Dom.element = "";
div->setInnerHTML({|<h1>Hello, World!</h1>|});
[@bs.get]
external body : Dom.element => Dom.element = "";
[@bs.get]
external firstChild : Dom.element => Dom.element = "";
describe("prettyDOM", () => {
open Expect;
let div = domParser()
|> parseFromString("<div><b>Hello,</b><p> World!</p></div>")
|> body
|> firstChild;
describe("prettyDOM", () => {
test("works", () => {
let actual = div |> DomTestingLibrary.prettyDOM;
expect(actual) |> toMatchSnapshot;
});
test("works with maxLength", () => {
let actual = div |> DomTestingLibrary.prettyDOM(~maxLength=25);
expect(actual) |> toMatchSnapshot;
});
});
div
|> getByText(~matcher=`Str("Hello, World!"))
|> expect
|> ExpectJs.toBeTruthy;
});

@@ -102,8 +78,8 @@ ```

### [v0.3.0](https://github.com/wyze/bs-dom-testing-library/releases/tag/v0.3.0) (2018-10-10)
### [v0.4.0](https://github.com/wyze/bs-dom-testing-library/releases/tag/v0.4.0) (2019-04-05)
* [[`2a6ddfe79f`](https://github.com/wyze/bs-dom-testing-library/commit/2a6ddfe79f)] - Split main module into submodules (#4) (Neil Kistner)
* [[`584e1de278`](https://github.com/wyze/bs-dom-testing-library/commit/584e1de278)] - Add FireEvent.click and FireEvent.change methods (#2) (Neil Kistner)
* [[`c6aa67ffcf`](https://github.com/wyze/bs-dom-testing-library/commit/c6aa67ffcf)] - Add ignore option to getByText query (#3) (Neil Kistner)
* [[`8424bb3f8e`](https://github.com/wyze/bs-dom-testing-library/commit/8424bb3f8e)] - Upgrade dependencies (Neil Kistner)
* Add the rest of the events and change method signature ([@wyze](https://github.com/wyze) in [0814ce1](https://github.com/wyze/bs-dom-testing-library/commit/0814ce1))
* Change tests to use new render function ([@wyze](https://github.com/wyze) in [feeb021](https://github.com/wyze/bs-dom-testing-library/commit/feeb021))
* Meta file updates ([@wyze](https://github.com/wyze) in [3ab333b](https://github.com/wyze/bs-dom-testing-library/commit/3ab333b))
* Upgrade dependencies ([@wyze](https://github.com/wyze) in [bcded3e](https://github.com/wyze/bs-dom-testing-library/commit/bcded3e))

@@ -114,6 +90,9 @@ ## License

[travis-image]: https://img.shields.io/travis/wyze/bs-dom-testing-library.svg?style=flat-square
[travis-url]: https://travis-ci.org/wyze/bs-dom-testing-library
[circleci-image]: https://img.shields.io/circleci/project/github/wyze/bs-dom-testing-library.svg?style=flat-square
[circleci-url]: https://circleci.com/gh/wyze/bs-dom-testing-library
[npm-image]: https://img.shields.io/npm/v/bs-dom-testing-library.svg?style=flat-square
[npm-url]: https://npm.im/bs-dom-testing-library
[coveralls-image]: https://img.shields.io/coveralls/github/wyze/bs-dom-testing-library.svg?style=flat-square
[coveralls-url]: https://coveralls.io/github/wyze/bs-dom-testing-library

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc