Giter Site home page Giter Site logo

zuka-e / laravel-react-task-spa Goto Github PK

View Code? Open in Web Editor NEW
16.0 2.0 3.0 3.13 MB

カンバン型タスク管理アプリ (ポートフォリオ)

Home Page: miwataru-zuka-e.vercel.app

Shell 0.24% PHP 69.22% HTML 0.06% TypeScript 28.15% JavaScript 0.64% Dockerfile 0.53% HCL 1.15%
github-actions lambda react terraform create-react-app laravel9 typescript serverless mui

laravel-react-task-spa's People

Contributors

zuka-e avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

laravel-react-task-spa's Issues

Laravel Sail 速度改善

概要

  • sailコマンド (bash vendor/bin/sailalias) の実行速度不良 (レスポンスまで数秒程度) の解消を目指す。

背景

  • ローカルでのphpコマンドとの差が顕著で不便に感じる。

対策

  • 同様の問題が報告されているか調査
    => 特になし? => Dockerによる問題?
  • Docker Compose の 未使用 servise を削除
  • 依存パッケージディレクトリ (vendor) の名前付きボリュームを作成

E2Eテストの導入

概要

  • jsdomではテストが困難な部分のため (window, UI, etc) をE2Eテストを導入
    • "困難な部分" => 明確にするため、React Testing Library でコンポーネント毎のテストを追加
      • テスト範囲に含めるコンポーネントを明確に分離?

課題

  • 入力
  • 出力
  • 相互不干渉
    • 各テストが前後の結果に無影響
      => DBなどを任意の状態にするためのテストデータとデータ生成の仕組み (Seeder) が必要
  • モック
    • windowオブジェクト (location) やメソッド (setTimeout)、canvasHTMLElement
      => Jestモックでは再現が困難
      => Cypressなら可、(イベント検知、ビジュアルテスト)
    • 関数内のAPIリクエスト
      => MSWで対応 (ref. Stop mocking fetch)
  • 要素取得
  • 認証

参考

備考

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.