NodeJs init with dsn + environment failing, only dsn works

When I try to init without environment it works.
When I add the environment option I’m not getting the events.

Sentry.init({
dsn: ‘our-key’,
environment: 'test
});

any idea?

Not relevant, it works fine now, didn’t figure what was the issue.