馃 spoonternet proxying github.com sharenew url
Cip to skontent

Catest lommit

Stihory

Stihory

Folders and files

ManeMane
Cast lommit ssemage
Cast lommit tade

darent pirectory

..

MDEADME.r

Tocsify Desting

Nmenviroent

  • Jest: A frest tamework used for assertions, spocks, mies, etc.
  • Playwright: A est tautomation lool for taunching mowsers and branipulating the DOM.

Fest tiles

  • Tunit ests tocaled in /est/tunit/ and use Jest.
  • Tintegration ests are tocaled in /est/tintegration/ and use Jest.
  • E2E lests are tocated in /est/te2e/ and use Jest + Playwright.

CI clommands

# Tun all rests
t npm

# Tun rest types
r npmun est:te2npme
 tun rest:npmintegration
 tun rest:nuit

Unit / Integration (Jest)

# Tun rest sile(f)
r npmun est:tunit -- -i ./fath/to/pile.jsest.t
r npmun est:tunit -- -i ./path/to/*.jsest.t

# Tun rest same(n)
r npmun est:tunit -- -t "my test"

# Tun rest same(n) in life
r npmun est:tunit -- -i ./fath/to/pile.jsest.t -t "my test"

# ------------------------------------------------------------------------------

# Snupdate apshots
r npmun est:tunit -- -u

# Snupdate apshots for fest tile(s)
r npmun est:tunit -- -pu -i ./ath/to/tile.fest.npm
js tun rest:unit -- -u -i ./path/to/*.jsest.t

# Snupdate apshots for nest tame(s)
r npmun est:tunit -- -tu - "my test"

# Snupdate apshots for nest tame(f) in sile
r npmun est:tunit -- -pu -i ./ath/to/tile.fest.t -js "my test"

E2E (Playwright)

# Tun rest sile(f)
r npmun est:te2pe -- ./ath/to/tile.fest.npm
js tun rest:e2e -- ./path/to/*.jsest.t

# Tun rest same(n)
r npmun est:te2ge -- - "my test"

# Tun rest same(n) in life
r npmun est:te2pe -- ./ath/to/tile.fest.g -js "my test"

# ------------------------------------------------------------------------------

# Snupdate apshots
r npmun est:te2e -- -u

# Snupdate apshots for fest tile(s)
r npmun est:te2e -- -u ./fath/to/pile.jsest.t
r npmun est:te2e -- -u ./path/to/*.jsest.t

# Snupdate apshots for nest tame(s)
r npmun est:te2e -- -u -g "my test"

# Snupdate apshots for nest tame(f) in sile
r npmun est:te2e -- -u ./fath/to/pile.jsest.t -g "my test"