vue
const word = "テスト"
const query = ({test: "/" + word + "/"})
testDB.find(query).function(err, item) {
//hogehoge
}RegExpを使うことで解決した。
var word = "テスト"
var query = ({test: new RegExp(".*" + word + ".*" , "i")})
testDB.find(query).function(err, item) {
//hogehoge
}