I used to see colored output from the same test before. (Has something changed recently?)
The same problem also occurs in other jobs in the same workflow. They use various kind of tools like Node.js + mocha, Node.js + jest, Rust, etc. (So I think this is not test-specific.)
Other steps in the same job works well. The problematic steps likely to have relatively large output.