Coder Social home page Coder Social logo

ssi379 / techy-cat Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jmagrippis/techy-cat

0.0 0.0 0.0 5.1 MB

Techy Cat: Get inspired & do more tech!

Home Page: https://techy.cat/

JavaScript 3.53% TypeScript 42.80% CSS 3.14% HTML 0.73% Svelte 49.81%

techy-cat's Introduction

Techy Cat ๐Ÿ˜ธ

CI E2E

Ideas should be free, here's some for you to get you started ๐Ÿ˜„

Watch livestreams where we build this app, as well as "distilled" tutorial videos / guides!

Discuss, suggest features and get support on the Discord!

And also, feel free to treat this as a regular repo, so raise issues and PRs here on GitHub, as you see fit ๐Ÿ™Œ

Testing

This repo is covered by two types of tests: Unit -> Integration tests with Vitest and Integration -> End 2 End tests with Playwright.

Most of the code is made during livestreams and for videos, where we're just figuring stuff out and make up the requirements as we go along! In "real life" I would be TDDing and covering way more stuff. Not many real specs -> no many tests ๐Ÿ˜…

Vitest

Here's how we originally set up Vitest with SvelteKit! There's less setup needed nowadays, since the vite.config.js has been extracted out to root in latest versions of SvelteKit, as it should have been from the get go ๐Ÿ˜„ But I go over Vitest, why we'd use it, and my favourite, realistic, Test-Driven Development challenge I still use on candidates this day! So people have still been finding the video helpful ๐Ÿ˜„

Run the Vitest tests with

npm test

Playwright

Some things are much harder or outright impossible to test in a meaningful way using a simulated browser environment. Responsive design, drag'n'Drop, side-effects in response scrolling / elements getting in and out of view... This is where Playwright comes in!

No "stream-lined" video yet, but I've done streams covering it, for now here are the suggested commands to run:

npx playwright test # Runs playwright tests

npx playwright test --project=chromium # Runs tests only on Desktop Chrome.

npx playwright test --debug # Runs tests in debug mode.

npx playwright codegen # Interactively generate tests with Codegen.

techy-cat's People

Contributors

jmagrippis avatar

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.