[generate/package] fix rootDir for generated jest.config.js (#130634)

This commit is contained in:
Spencer 2022-04-20 09:29:27 -05:00 committed by GitHub
parent 26f042f699
commit 0646a97fdf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,5 +1,5 @@
module.exports = {
preset: <%- js(pkg.web ? '@kbn/test' : '@kbn/test/jest_node') %>,
rootDir: '../..',
rootDir: <%- js(relativePathTo('.')) %>,
roots: [<%- js(`<rootDir>/${pkg.normalizedRepoRelativeDir}`) %>],
};