Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial version of localization #12

Merged
merged 11 commits into from
May 23, 2024
34 changes: 34 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,40 @@

Valintojen toteuttamisen käyttöliittymä

## Lokaaliajo

Asenna riippuvuudet komennolla:

`npm ci`

Sen jälkeen käynnistä palvelu komennolla:

`npm run dev`

## Testaus

Aja yksikkötestit komennolla:

`npm test`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
`npm test`
`npm run test`

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ei tarvi, npm test toimii

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tämä on varmaan ainoa npm-skriptin ajava komento, jossa ei ole pakko laittaa run. Yhdenmukaisuus on hyve tässäkin, vaikka node ei olisikaan yhdenmukainen.


### Kälitestit

Käynnistä sovelluskomennolla:

`npm run dev-test`

Aja sen jälkeen testit komennolla:

`npx playwright test`

Jos haluat ajaa testit vain tietyllä selaimella niin se onnistuu komennolla:

`npx playwright test --project=firefox`

Jos haluat ajaa vain tietyn testitiedoston, se onnistuu komennolla:

`npx playwright test --project=chromium tests/e2e/lokalisointi.spec.ts`

## Deploy

Asenna ensin sovelluksen riippuvuudet ja buildaa next.js sovellus:
Expand Down
Loading
Loading