Skip to content

Commit

Permalink
Merge pull request #3141 from keyno63/fix/scalatest-version
Browse files Browse the repository at this point in the history
update scalatest version
  • Loading branch information
adpi2 authored Jan 8, 2025
2 parents fe25dea + 385efcf commit decc87d
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Scala には複数のライブラリとテスト方法がありますが、こ
1. ScalaTest への依存を追加します。
1. `build.sbt` ファイルに ScalaTest への依存を追加します。
```
libraryDependencies += "org.scalatest" %% "scalatest" % "3.0.8" % Test
libraryDependencies += "org.scalatest" %% "scalatest" % "3.2.19" % Test
```
1. `build.sbt was changed` という通知が出たら、**auto-import** を選択します。
1. これらの2つのアクションにより、`sbt` が ScalaTest ライブラリをダウンロードします。
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ This assumes you know [how to build a project in IntelliJ](building-a-scala-proj
1. Add the ScalaTest dependency:
1. Add the ScalaTest dependency to your `build.sbt` file:
```
libraryDependencies += "org.scalatest" %% "scalatest" % "3.2.11" % Test
libraryDependencies += "org.scalatest" %% "scalatest" % "3.2.19" % Test
```
1. If you get a notification "build.sbt was changed", select **auto-import**.
1. These two actions will cause `sbt` to download the ScalaTest library.
Expand Down
4 changes: 2 additions & 2 deletions _overviews/scala-book/sbt-scalatest-tdd.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,15 @@ version := "1.0"
scalaVersion := "{{site.scala-version}}"

libraryDependencies +=
"org.scalatest" %% "scalatest" % "3.2.11" % Test
"org.scalatest" %% "scalatest" % "3.2.19" % Test

```

The first three lines of this file are essentially the same as the first example, and the `libraryDependencies` lines tell sbt to include the dependencies (jar files) that are needed to run ScalaTest:

```scala
libraryDependencies +=
"org.scalatest" %% "scalatest" % "3.2.11" % Test
"org.scalatest" %% "scalatest" % "3.2.19" % Test
```

>The ScalaTest documentation has always been good, and you can always find the up to date information on what those lines should look like on the [Installing ScalaTest](http://www.scalatest.org/install) page.
Expand Down
2 changes: 1 addition & 1 deletion _overviews/scala3-book/tools-sbt.md
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ version := "0.1"
scalaVersion := "{{site.scala-3-version}}"
libraryDependencies ++= Seq(
"org.scalatest" %% "scalatest" % "3.2.9" % Test
"org.scalatest" %% "scalatest" % "3.2.19" % Test
)
```
Expand Down
4 changes: 2 additions & 2 deletions _overviews/scala3-migration/tutorial-prerequisites.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ The dependency to `"scalatest" %% "scalatest" % "3.0.9"` must be upgraded becaus
- The `scalatest` API is based on some macro definitions.
- The `3.0.9` version is not published for Scala 3.

We can upgrade it to version `3.2.7`, which is cross-published in Scala 2.13 and Scala 3.
We can upgrade it to version `3.2.19`, which is cross-published in Scala 2.13 and Scala 3.

```scala
libraryDependencies += "org.scalatest" %% "scalatest" % "3.2.7"
libraryDependencies += "org.scalatest" %% "scalatest" % "3.2.19"
```

## Compiler plugins
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ previous-page: /ru/building-a-scala-project-with-intellij-and-sbt
1. Добавьте зависимость ScalaTest:
1. Добавьте зависимость ScalaTest в свой файл `build.sbt`:
```
libraryDependencies += "org.scalatest" %% "scalatest" % "3.2.11" % Test
libraryDependencies += "org.scalatest" %% "scalatest" % "3.2.19" % Test
```
1. Если вы получили уведомление "build.sbt was changed", выберите **auto-import**.
1. Эти два действия заставят `sbt` подгрузить библиотеки ScalaTest.
Expand Down
2 changes: 1 addition & 1 deletion _ru/scala3/book/tools-sbt.md
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ version := "0.1"
scalaVersion := "{{site.scala-3-version}}"

libraryDependencies ++= Seq(
"org.scalatest" %% "scalatest" % "3.2.9" % Test
"org.scalatest" %% "scalatest" % "3.2.19" % Test
)
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ previous-page: /uk/building-a-scala-project-with-intellij-and-sbt
1. Додайте залежність ScalaTest:
1. Додайте залежність ScalaTest у файл `build.sbt` вашого проєкту:
```
libraryDependencies += "org.scalatest" %% "scalatest" % "3.2.11" % Test
libraryDependencies += "org.scalatest" %% "scalatest" % "3.2.19" % Test
```
1. Ви побачите сповіщення "build.sbt was changed", оберіть **auto-import**.
1. Ці дві дії призведуть до того, що `sbt` завантажить бібліотеку ScalaTest.
Expand Down
2 changes: 1 addition & 1 deletion _zh-cn/overviews/scala3-book/tools-sbt.md
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ version := "0.1"
scalaVersion := "{{site.scala-3-version}}"
libraryDependencies ++= Seq(
"org.scalatest" %% "scalatest" % "3.2.9" % Test
"org.scalatest" %% "scalatest" % "3.2.19" % Test
)
```
Expand Down

0 comments on commit decc87d

Please sign in to comment.