我有一个带有子测试的主测试,该子测试遵循以下结构:
julia> f(g, xs; kwargs...) = begin
println(kwargs...)
map(g,xs)
end
f (generic function with 1 method)
julia> f(1:5; thisworks=true) do x x^2 end
:thisworks => true
5-element Array{Int64,1}:
1
4
9
16
25
但是,即使将其设置为使用describe('main test', () => {
describe('happy path', () => {
beforeAll(async () => {
console.log('in happy path...');
})
})
describe('treacherous path', () => {
beforeAll(async () => {
console.log('in treacherous path...');
})
})
})
跳过,该测试似乎也无条件记录in happy path
。我想知道如何解决此问题。