You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The website often operates with CommonJS examples, and since the CJS require imports are falling out of the fashion (well, actually... already did 😆 ), I guess it is highly advisable to make Detox website more informative and suggest some some sort of tabs, e.g.:
JS (or CommonJS):
const jestExpect = require('expect').default;
TS (or ES Modules):
import jestExpect from 'expect';
I'm unsure which dichotomy will be better for now, but the end-goal is to suggest both require and import ways in the examples.
The text was updated successfully, but these errors were encountered:
Describe your idea
The website often operates with CommonJS examples, and since the CJS
require
imports are falling out of the fashion (well, actually... already did 😆 ), I guess it is highly advisable to make Detox website more informative and suggest some some sort of tabs, e.g.:JS (or CommonJS):
TS (or ES Modules):
I'm unsure which dichotomy will be better for now, but the end-goal is to suggest both
require
andimport
ways in the examples.The text was updated successfully, but these errors were encountered: