Smart contract testing in solidity is done using Javascript testing frameworks Mocha and Chai. Installing a smart contract environment using Hardhat or Truffle comes with a test folder.
Truffle & hardhat(has inbuilt node.js) are like NPM & YARN or Web3js & Ether.js. You use one on a project. With programming, if you know the basics of certain things or languages it will be easy to familiarize yourself with another. Javascript is a prerequisite for learning solidity.