並び順

ブックマーク数

期間指定

  • から
  • まで

1 - 40 件 / 53件

新着順 人気順

enzymeの検索結果1 - 40 件 / 53件

  • GitHub - enzymejs/enzyme: JavaScript Testing utilities for React

    You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

      GitHub - enzymejs/enzyme: JavaScript Testing utilities for React
    • enzyme+mocha+power-assertでReactコンポーネントのフルレンダリングテスト - wadackel.me

      公開されている React コンポーネントのテストコードを見てみると、enzymeを使ってテストしているものを結構見かけます。enzyme はReact 公式でも押しているっぽいので、積極的に使っていきたいです。 Note: Airbnb has released a testing utility called Enzyme, which makes it easy to assert, manipulate, and traverse your React Components’ output. If you’re deciding on a unit testing library, it’s worth checking out: http://airbnb.io/enzyme/ 日本語の紹介記事では@syossan27さんの記事が参考になりました。 React のテストを Enz

        enzyme+mocha+power-assertでReactコンポーネントのフルレンダリングテスト - wadackel.me
      • EnzymeでReactコンポーネントのテストを書こう - DMM.comラボエンジニアブログ

        こんにちは、プラットフォーム開発部の新卒エンジニアの松下です。 普段は会員基盤フロントエンドチームでログインやアカウント登録などの会員基盤システムの開発をしています。 早いものであと1ヶ月ちょっとで1年目が終了。春には次の新卒が入ってくるとのことで、うかうかしていられないなと思う今日このごろです。 さて本日はEnzymeを使ってReactのテストを書く方法を紹介したいと思います。 Enzymeは宿泊予約サイトのAirbnbが開発しているReactコンポーネントのテストツールです。 チームでは以前よりテスティングフレームワーク「Mocha」とアサーションライブラリ「Chai」でNode.jsアプリケーションの単体テストや結合テストを行ってきました。しかし、これらのツールだけではReactのテストを行うことができず、今回Enzymeの導入を検討することにしました。 目次 Enzymeのセットア

          EnzymeでReactコンポーネントのテストを書こう - DMM.comラボエンジニアブログ
        • ENZYME - SIB Swiss Institute of Bioinformatics | Expasy

          ENZYME is a repository of information relative to the nomenclature of enzymes. It is primarily based on the recommendations of the Nomenclature Committee of the International Union of Biochemistry and Molecular Biology (IUBMB) and it describes each type of characterized enzyme for which an EC (Enzyme Commission) number has been provided.

          • React+Redux環境に『Jest』と『 Enzyme』を導入し、フロントエンドでのテスト環境を構築しました - Zeals TECH BLOG

            みなさんこんにちは! Zealsでフロントエンドエンジニアとしてインターンをしている栂瀬といいます。 この度Zealsで、テスティングフレームワークのJestを導入しました! 背景や導入にあたっての取り組みなど、何を行なったかを詳しくご紹介していきたいと思います! Jest & Enzyme とは 背景 実際に動かしてみた 【準備】React Componentをテストしよう 実際のテストコードをご紹介 タグの有無をテスト イベントのテスト Reduxのテスト reducerのテスト テストコード勉強会 勉強会のコンテンツ:shallow is faster than mount ?? 検証結果 勉強会の成果 テスト導入のメリット 今後の展望 まとめ Jest & Enzyme とは JestとはFacebookが開発しており、細かい設定なしで簡単にフロントエンドのユニットテストを行うこと

              React+Redux環境に『Jest』と『 Enzyme』を導入し、フロントエンドでのテスト環境を構築しました - Zeals TECH BLOG
            • Jest + enzymeで行うReactのユニットテスト(単体テスト)について

              その他にReactにenzymeを連携させるためのenzyme-adapter-react-16や、Jestのスナップショットを行うためのreact-test-renderer、Jestでenzyme-matchersを使用するためのjest-enzymeなどが状況により必要となります。 なお、create-react-appを使う場合は、デフォルトでJestが組み込まれており、特にBabelなどの設定を行う必要はありません。enzymeについては、別途インストールが必要です。 JestについてJestはテスティングフレームワークです。以下のような特徴があります。 JestはJasmine 2をベースに作られていて、JasmineのMatcherがそのまま使えます。Facebook製でReactのイメージが強いですが、他のフレームワークなどでも普通に使えます。Node.js上のjsdomで

                Jest + enzymeで行うReactのユニットテスト(単体テスト)について
              • Enzyme: JavaScript Testing utilities for React

                Testing code is crucial for the maintainability of a complex code base, but it is just as important that tests are easy to write, maintain, and understand. Frontend code is no exception to this rule, and behaviors that live in your UI should be tested as well. Almost three months ago, Airbnb open sourced Enzyme, a JavaScript library for testing React components. Since then, the reception has been

                • ENZYME HOKKAIDO 2品目「酵素半熟鶏ささみチーズ」 /2019北海道⑦

                  最近、高級おやつ(キウイ缶)が巷で話題ですが、こちらも忘れてはいませんよ(^o^) いただいた3つのパックのうち、2つめの試食レポートになります! 前回(半熟豚ヒレスティック)、なっチョロチョを代表して完食したチョロくんの雄姿を思い出す(*^_^*) 前回の豚ヒレスティックは、最初の食いつきは良かったのですが、食べ慣れない豚肉に苦労したのか女子チームが途中離脱し、残ったのをチョロくんがなっチョロチョを代表して完食という結果でした。チョロくんの責任感にあっぱれ!www 今回は、何といってもみんなが食べ慣れた『鶏ささみ』ですから、きっとだいじょうぶ♪♪♪ さっそく実食です!!! 今回はちゅ~ると一緒に器にのせました。 どうかなどうかな? ガツガツ食べるでしょ鶏ささみ!! え!!!!! なっちゃんがちゅ~るだけ完食して離脱!ガ━━(;゚Д゚)━━ン!! チョロくんも、食べるのをやめてしまってい

                    ENZYME HOKKAIDO 2品目「酵素半熟鶏ささみチーズ」 /2019北海道⑦
                  • ReactのテストをEnzymeで書いてみよう - Qiita

                    GithubのExploreを覗いていたら面白そうなテストツールがありました。 https://github.com/airbnb/enzyme Reactに力を入れているというAirbnbが作ったテスティングツールなのですが、ドキュメントがサラッとしか書いてなかったのでお遊びがてら使えるようになるまで触った軌跡を書いてきます。 「んなことより早くブツを見せんかい!!」という猛者JSerな方は以下のリポジトリから何となく意図を汲みとって何となくマサカリを投げてください。 はじめに まずは必要なものをnpmで入れてきましょう。 $ npm install -g mocha $ npm install --save-dev chai $ npm install --save-dev babel-register $ npm install --save-dev enzyme インストールしたも

                      ReactのテストをEnzymeで書いてみよう - Qiita
                    • mocha + enzyme + power-assertの環境構築メモ - Qiita

                      npm install -D babel babel-register babel-preset-latest babel-preset-react babel-plugin-espower mocha power-assert enzyme react-addons-test-utils jsdom jsdom-global npm install -S react

                        mocha + enzyme + power-assertの環境構築メモ - Qiita
                      • Testing React Components with Enzyme and Mocha - Semaphore

                        Full-stack web developer, passionate about solving engineering problems of all kinds with elegant solutions that deliver incredible user experiences. Some thoughts & some code @ ifelse.io. @markthethomas everywhere else. Introduction React has become an increasingly popular and widely-used JavaScript application tool for developing web applications. Popular frameworks like Angular.js, Ember.js, an

                          Testing React Components with Enzyme and Mocha - Semaphore
                        • Testing React / Redux Apps with Jest & Enzyme - Part 1: Installation & Setup | DigitalOcean

                          Featured Articles Cloud cost optimization best practices Read moreHow to choose a cloud provider Read moreUnderstanding cash flow vs. profit Read more

                            Testing React / Redux Apps with Jest & Enzyme - Part 1: Installation & Setup | DigitalOcean
                          • Catalyst-Enzyme-0.11 - Catalyst Test - metacpan.org

                            The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

                            • GitHub - adriantoine/enzyme-to-json: Snapshot test your Enzyme wrappers

                              You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                                GitHub - adriantoine/enzyme-to-json: Snapshot test your Enzyme wrappers
                              • Humanoid Sound Systems、ウェーブテーブル音源とフィジカル・モデリング音源を融合したソフト・シンセ「Enzyme Player」の無償配布を開始……Mac/Win両対応!

                                英Humanoid Sound Systemsが、Mac/Windows両対応のソフトウェア・シンセサイザー、「Enzyme Player」の無償配布を開始しています。 「Enzyme Player」は、同社のソフトウェア・シンセサイザー、Enzymeの機能限定バージョン。Enzymeは、ウェーブテーブル音源とフィジカル・モデリング音源を融合したユニークなソフトウェア・シンセサイザーで、FMシンセシス機能なども搭載しています。今回無償配布が開始された「Enzyme Player」は、Enzymeと比べるとプリセットの数が少なく、シンセシス・パラメーターやモジュレーション・マトリクス、エフェクトなどをエディットすることはできませんが、核となるシンセシス・エンジンは同一。最大16種類のパフォーマンス・パラメーターに関してはエディットできるようになっています。 「Enzyme Player」を入

                                  Humanoid Sound Systems、ウェーブテーブル音源とフィジカル・モデリング音源を融合したソフト・シンセ「Enzyme Player」の無償配布を開始……Mac/Win両対応!
                                • mocha + enzyme で React Native コンポーネントをテストする - Qiita

                                  React Native 開発でも mocha を使う理由 React Native ではテスティングフレームワークとして Jest が推奨されていますが、 Jest は Jasmine 系の API を受け継いでいることもあり、 mocha に比べると習熟が難しいことが難点です。 API を覚えるまでは expect に続けてどういった条件を書けるんだっけ、とリファレンスをあさる必要が出てきます。 こういったことを覚えずにすむ mocha は非常にコストパフォーマンスのよい技術です。単純に assert で満たすべき条件を羅列してやるだけでテストが書けます。テスト駆動開発で有名な @t_wada 和田卓人さんは No API is the best API とおっしゃっています。 ちなみに react-native init 時の Jest インストールは設定で抑制できます。 React

                                    mocha + enzyme で React Native コンポーネントをテストする - Qiita
                                  • Testing a React-Redux app using Jest and Enzyme

                                    As we enter into the new year(2017), I wanted to pause from writing posts on stuffs that excite me like developing something new like some React app or learning and trying out some super awesome library like GraphQL etc and just go few steps back and focus on unit testing and TDD. Not exactly a New Year resolution but something I am going to force myself into doing more from here on wards. Testing

                                      Testing a React-Redux app using Jest and Enzyme
                                    • Catalyst::Enzyme - Catalyst用CRUDフレームワーク

                                      名前 Catalyst::Enzyme - Catalyst用CRUDフレームワーク SYNOPSIS # アプリケーションを作成 catalyst BookShelf cd BookShelf # ビューを作成 script\bookshelf_create.pl view TT Enzyme::TT # データベースを作成 ……ここはみなさんの宿題とします(うそうそ、チュートリアルを読んでね)…… # すべてのテーブルに対してモデルを作成 script\bookshelf_create.pl model BookShelfDB Enzyme::CDBI dbi:SQLite:dbname=db/bookshelf.db # コントローラを作成 script\bookshelf_create.pl controller Book Enzyme::CRUD Boo

                                      • 下品なMASSIVE?無償配布のソフトシンセサイザー「Enzyme Player」レビュー【デモあり】 – こおろぎさんち

                                        英Humanoid Sound Systemsが、Mac/Windows両対応 無償配布のソフトシンセサイザー「Enzyme Player」を使ってみました。 ざっくり・音質は太くて荒々しい ・MASSIVEぽい デモはこちら。ベース、FXなど。 0:30からのベース、0:51からのワブルベースがわかりやすいかも。冒頭のシンセパッドとディレイが掛かった音は違います。Enzyme Playerではキレイめなパッドや、粒立ちと歯切れがいい音が出なかったので別のシンセを使いました。 公式動画はこちら 音像がデカくて荒い雰囲気。低音の太さと、高域のガザガザした感じはMASIVEそっくり。それをもうちょっと下品にした感じ。下痢みたいな音です。いや、褒めてます。 MASSIVEっぽい音が欲しいけどそんなに使わないだろうから買うまでもないなっていう人は入れとくといいかもね。 左上のWaveScopeが全

                                          下品なMASSIVE?無償配布のソフトシンセサイザー「Enzyme Player」レビュー【デモあり】 – こおろぎさんち
                                        • Testing Your React Component With Jest and Enzyme

                                          IntroductionSo you have created your react application. All seems to work as expected. However, you can never be too sure. Hence, testing your app becomes a necessity. There are quite a number of testing frameworks for javascript applications: Ava, Mocha, Jasmine, Jest, and so on. I recommend Jest for your React application. Why Jest? Jest seems to be gaining much popularity in the Javascript-Reac

                                            Testing Your React Component With Jest and Enzyme
                                          • Testing React Hooks With Enzyme and React Testing Library | CSS-Tricks

                                            DigitalOcean provides cloud products for every stage of your journey. Get started with $200 in free credit! As you begin to make use of React hooks in your applications, you’ll want to be certain the code you write is nothing short of solid. There’s nothing like shipping buggy code. One way to be certain your code is bug-free is to write tests. And testing React hooks is not much different from ho

                                              Testing React Hooks With Enzyme and React Testing Library | CSS-Tricks
                                            • React Unit Testing with Mocha and Enzyme

                                              by Michael Shilman Image credit: Simon LiuReact Unit Testing with Mocha and EnzymeA step-by-step tutorial for UI testing in Meteor.This is a short tutorial to help you test your React UI components. It presents a simple UI testing pattern I contributed to the Meteor Guide (?) and Todos sample app (?). You should read this if you: Are using React to develop your appsWant an easy way to automaticall

                                                React Unit Testing with Mocha and Enzyme
                                              • enzymeならjsdomなしでReactのテストがほぼ全てできる - Qiita

                                                問題意識 reactのコンポーネントのテストは、react-addon-test-utilsをそのまま使うと面倒なことが多いです。具体的には、 コンポーネントを描画するためにdom環境が必要(jsdomやkarmaなどを使うのが一般的) 子コンポーネントも全て描画される 前者は、特にReact Nativeのテストをしたい時に困ります。dom環境ではないランタイムが必要でテストできないので。 後者は、単体テストの原則に反します。また、reduxのconnectなどを子コンポーネントに適用していた場合はテスト環境の構築も面倒になってきます。 そこで登場したのがenzymeです。 shallow renderingを用いることで、jsdomなどのランタイムなしに対象のコンポーネントのみをテストすることができます。 しかし、実際にコンポーネントをmountしているわけではないため、 実際に表示さ

                                                  enzymeならjsdomなしでReactのテストがほぼ全てできる - Qiita
                                                • create-react-app + Jest + Enzyme で書くReactコンポーネントテストの始め方

                                                  まえおき リファクタリングしたいのでまずはテストを用意しようと思いました Facebook謹製のJestというオールインワンなツールでテストをします Airbnb謹製のEnzymeというTest Utilitiesを使ってテストコードを書きます もとのWebアプリはcreate-react-appでつくられています create-react-app + Jest + Enzyme でテストを書きはじめようと思ったときにしたこと、つまづいたことを書き留めておく回です。 Jestの公式サイト内にもcreate-react-appを使った解説が載っているので、公式派の人はそちらをどうぞ。 まえおき Environments create-react-app のおさらい Jestとは、Enzymeとは Jest Enzyme テストの書き始め方 1. テストファイルの配置場所を知る 2. テストフ

                                                    create-react-app + Jest + Enzyme で書くReactコンポーネントテストの始め方
                                                  • enzyme/docs/guides/jsdom.md at master · enzymejs/enzyme

                                                    JSDOM is a JavaScript based headless browser that can be used to create a realistic testing environment. Since enzyme's mount API requires a DOM, JSDOM is required in order to use mount if you are not already in a browser environment (ie, a Node environment). For the best experience with enzyme, it is recommended that you load a document into the global scope before requiring React for the first t

                                                      enzyme/docs/guides/jsdom.md at master · enzymejs/enzyme
                                                    • Recycling hope for plastic-hungry enzyme

                                                      Scientists have improved a naturally occurring enzyme which can digest some of our most commonly polluting plastics. PET, the strong plastic commonly used in bottles, takes hundreds of years to break down in the environment. The modified enzyme, known as PETase, can start breaking down the same material in just a few days.

                                                        Recycling hope for plastic-hungry enzyme
                                                      • Testing React Native components with Enzyme

                                                        Testing React Native components has a reputation. A bad one. Now, if you watch this great talk by Leland Richardson I think you’ll agree that the reputation of React Native testing may have changed. Leland Richardson put a ton of work into making his testing utility, Enzyme, compatible with React Native by having “painstakingly mocked out the entire React Native API”. The result of this massive ef

                                                        • Next.jsにjestとenzymeを導入する - Qiita

                                                          $ npm install --save-dev babel-jest babel-core babel-preset-env babel-preset-react

                                                            Next.jsにjestとenzymeを導入する - Qiita
                                                          • React v16でAirbnbのenzymeを使う時の覚書 | WP-kyoto

                                                            「React v16が出たぞやったー」ってなって早速yarn upgradeとかすると、こういうエラーで死にます。 FAIL src/App.test.js ● renders without crashing Enzy […] 「React v16が出たぞやったー」ってなって早速yarn upgradeとかすると、こういうエラーで死にます。 FAIL src/App.test.js ● renders without crashing Enzyme Internal Error: Enzyme expects an adapter to be configured, but found none. To configure an adapter, you should call `Enzyme.configure({ adapter: new Adapter() })` before u

                                                              React v16でAirbnbのenzymeを使う時の覚書 | WP-kyoto
                                                            • Enzyme is dead. Now what?

                                                              I'm the maintainer of @wojtekmaj/enzyme-adapter-react-17. I'm here to warn you. Enzyme, a popular utility to test React components, is dead. It's time to move on. Here's why I think so. For a long time, Enzyme has been the 1st choice when it comes to testing React applications, despite of how bumpy the road to Enzyme React 16 support was. Even today, 1/3 of React apps are still being tested using

                                                                Enzyme is dead. Now what?
                                                              • Scientists accidentally create mutant enzyme that eats plastic bottles

                                                                Scientists have created a mutant enzyme that breaks down plastic drinks bottles – by accident. The breakthrough could help solve the global plastic pollution crisis by enabling for the first time the full recycling of bottles. The new research was spurred by the discovery in 2016 of the first bacterium that had naturally evolved to eat plastic, at a waste dump in Japan. Scientists have now reveale

                                                                  Scientists accidentally create mutant enzyme that eats plastic bottles
                                                                • Official REBASE Homepage | The Restriction Enzyme Database | NEB

                                                                  REBASE does not track or share your personal information. Any personal or other information you provide to REBASE will only be used to communicate with you and to update REBASE data. You can unsubscribe from REBASE subscription emails by sending your request to macelis@neb.com. This statement replaces any conflicting content in NEB's Privacy Policy and Terms of Use, which otherwise apply to your u

                                                                  • React Unit Testing with Jest and Enzyme | Django Stars

                                                                    Unit testing React components may be challenging for beginners and experienced developers who have already worked with tests. It may be interesting to compare your own approaches with the ones we use in our project. In order to cover the codebase, you have to know which React components must be tested and which code exactly in the component should be covered. During reading, I’ll cover the next to

                                                                      React Unit Testing with Jest and Enzyme | Django Stars
                                                                    • Enzyme 3.x で `create-react-app` で作成した React コンポーネントのユニットテスト - Qiita

                                                                      create-react-appでReactのアプリを作り始めた場合、src/App.test.jpというファイル名で以下のようなテストが自動的に生成されます。 import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; it('renders without crashing', () => { const div = document.createElement('div'); ReactDOM.render(<App />, div); ReactDOM.unmountComponentAtNode(div); }); 素晴らしいことに create-react-app コマンドでは package.json もいい感じに作ってくれるので、このテストを実行するにはいきなり

                                                                        Enzyme 3.x で `create-react-app` で作成した React コンポーネントのユニットテスト - Qiita
                                                                      • BRENDA Enzyme Database

                                                                        Text-based queries Full-text Search Advanced Search DRENDA MeSH Ontology Structure-based queries Ligand Structure Search Metabolic Pathways Enzyme Structures Explorer Enzyme Classification TaxTree Protein folding: CATH, SCOPe Ontologies Visualization Enzyme Word Maps Organism Word Maps Genomes Functional Parameter Statistics Metabolic Pathways Prediction Membrane Helices Localization Prediction En

                                                                        • Reactのテストライブラリを比較する - react-test-renderer, enzyme, react-testing-library - Qiita

                                                                          Reactのテストライブラリを比較する - react-test-renderer, enzyme, react-testing-library Reactのユニットテストでよく使われるライブラリにenzymeがあります。 enzymeを紹介する記事を見ているとshallowが旨味の一つであり、簡単に単体テストが出来るとよく紹介されるのを見かけます。 Jestと用いられる、enzyme以外のライブラリもいくつかあるようなので、人気な理由とその使い方を備忘録がてら紹介しようと思います。 Jest まずはJestについて簡単に特徴を紹介します。 公式サイト:https://jestjs.io/docs/ja/tutorial-react facebook製のテストフレームワーク create-react-appでデフォルトで入っている React Component のユニットテストに使える

                                                                            Reactのテストライブラリを比較する - react-test-renderer, enzyme, react-testing-library - Qiita
                                                                          • Unit testing your React application with Jest and Enzyme

                                                                            I don’t think i have to tell you the importance of unit testing your code, so i’ll dive in directly to unit testing with Jest and Enzyme. First of all what are Jest and Enzyme? Jest was created by Facebook and is a testing framework to test javascript and React code. Together with Airbnb’s Enzyme, which is a testing utility, makes it the perfect match to easily test your React application. Snapsho

                                                                              Unit testing your React application with Jest and Enzyme
                                                                            • React Hooks Jest + enzyme + act で useEffect を含むコンポーネントのテストする - かもメモ

                                                                              react-create-app で作成した React Hooks を使ったアプリケーションのテストのメモ TL;DR 下書き途中にしたまま数ヶ月が経過してしまったので、少し情報が古くなってしまってるかもですが書きかけていた Jest + enzyme + act で React Hooks のテストをしてみたエントリーを揚げます🍤 Jest Jest · 🃏 Delightful JavaScript Testing GitHub - facebook/jest: Delightful JavaScript Testing. Facebook 製 JavaScript のユニットテストツール群。 Snapshot Test などさまざまな単体テストを書くためのfunction群と、テストを実行するテストランナーが含まれている。 create-react-app で作成したアプリには

                                                                                React Hooks Jest + enzyme + act で useEffect を含むコンポーネントのテストする - かもメモ
                                                                              • I tested a React app with Jest, Enzyme, Testing Library and Cypress. Here are the differences.

                                                                                Jest vs Testing Library vs Cypress: The results of the tests are in!You probably know that knowing how to test your code is important.A lot of jobs in tech will require knowledge of testing with at least one testing tool/framework/library. Here we will look to show you how to write tests with three different tools so that you can not only see the differences between them, but also begin to underst

                                                                                  I tested a React app with Jest, Enzyme, Testing Library and Cypress. Here are the differences.
                                                                                • Enzymeでテキスト変更をsimulateする - Qiita

                                                                                  Reactでユニットテストを書くときには、ユーティリティとしてairbnbのenzymeを使うと便利。 enzymeはshallowやmountといったI/Fでレンダリングを模擬してくれる。 またsimulateメソッドを利用してDOMのイベントを模擬できる。 ボタンクリック クリックはドキュメントにもあるが、以下のように記述できる。 const wrapper = mount(<a onClick={() => alert('click!!')}/>); wrapper.find('a').simulate('click'); // click!!

                                                                                    Enzymeでテキスト変更をsimulateする - Qiita